home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / Gestalt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  70.0 KB  |  1,791 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        Gestalt.h
  3.  
  4.      Contains:    Gestalt Interfaces.
  5.  
  6.      Version:    Technology:    Mac OS 8.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1988-1999 by Apple Computer, Inc.  All rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __GESTALT__
  18. #define __GESTALT__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24. #ifndef __MIXEDMODE__
  25.     #include <MixedMode.h>
  26. #endif
  27.  
  28.  
  29.  
  30.  
  31. #if PRAGMA_ONCE
  32. #pragma once
  33. #endif
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. #if PRAGMA_IMPORT
  40. #pragma import on
  41. #endif
  42.  
  43. #if PRAGMA_STRUCT_ALIGN
  44.     #pragma options align=mac68k
  45. #elif PRAGMA_STRUCT_PACKPUSH
  46.     #pragma pack(push, 2)
  47. #elif PRAGMA_STRUCT_PACK
  48.     #pragma pack(2)
  49. #endif
  50.  
  51.  
  52.  
  53. typedef CALLBACK_API( OSErr , SelectorFunctionProcPtr )(OSType selector, long *response);
  54. typedef STACK_UPP_TYPE(SelectorFunctionProcPtr)                 SelectorFunctionUPP;
  55.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  56.                                                                                             #pragma parameter __D0 Gestalt(__D0, __A1)
  57.                                                                                             #endif
  58. EXTERN_API( OSErr )
  59. Gestalt                            (OSType                 selector,
  60.                                  long *                    response)                            TWOWORDINLINE(0xA1AD, 0x2288);
  61.  
  62.  
  63.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  64.                                                                                             #pragma parameter __D0 ReplaceGestalt(__D0, __A0, __A1)
  65.                                                                                             #endif
  66. EXTERN_API( OSErr )
  67. ReplaceGestalt                    (OSType                 selector,
  68.                                  SelectorFunctionUPP     gestaltFunction,
  69.                                  SelectorFunctionUPP *    oldGestaltFunction)                    FOURWORDINLINE(0x2F09, 0xA5AD, 0x225F, 0x2288);
  70.  
  71.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  72.                                                                                             #pragma parameter __D0 NewGestalt(__D0, __A0)
  73.                                                                                             #endif
  74. EXTERN_API( OSErr )
  75. NewGestalt                        (OSType                 selector,
  76.                                  SelectorFunctionUPP     gestaltFunction)                    ONEWORDINLINE(0xA3AD);
  77.  
  78. /*    The GestaltValue functions are available in System 7.5 and later*/
  79.  
  80. EXTERN_API( OSErr )
  81. NewGestaltValue                    (OSType                 selector,
  82.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
  83.  
  84. EXTERN_API( OSErr )
  85. ReplaceGestaltValue                (OSType                 selector,
  86.                                  long                     replacementValue)                    THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
  87.  
  88. EXTERN_API( OSErr )
  89. SetGestaltValue                    (OSType                 selector,
  90.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
  91.  
  92. EXTERN_API( OSErr )
  93. DeleteGestaltValue                (OSType                 selector)                            THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
  94.  
  95.  
  96. #if OPAQUE_UPP_TYPES
  97.     EXTERN_API(SelectorFunctionUPP)
  98.     NewSelectorFunctionUPP           (SelectorFunctionProcPtr    userRoutine);
  99.  
  100.     EXTERN_API(void)
  101.     DisposeSelectorFunctionUPP       (SelectorFunctionUPP        userUPP);
  102.  
  103.     EXTERN_API(OSErr)
  104.     InvokeSelectorFunctionUPP       (OSType                    selector,
  105.                                     long *                    response,
  106.                                     SelectorFunctionUPP        userUPP);
  107.  
  108. #else
  109.     enum { uppSelectorFunctionProcInfo = 0x000003E0 };                 /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  110.     #define NewSelectorFunctionUPP(userRoutine)                     (SelectorFunctionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSelectorFunctionProcInfo, GetCurrentArchitecture())
  111.     #define DisposeSelectorFunctionUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  112.     #define InvokeSelectorFunctionUPP(selector, response, userUPP)     (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppSelectorFunctionProcInfo, (selector), (response))
  113. #endif
  114. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  115. #define NewSelectorFunctionProc(userRoutine)                     NewSelectorFunctionUPP(userRoutine)
  116. #define CallSelectorFunctionProc(userRoutine, selector, response) InvokeSelectorFunctionUPP(selector, response, userRoutine)
  117.  
  118. /* Environment Selectors */
  119. enum {
  120.     gestaltAddressingModeAttr    = FOUR_CHAR_CODE('addr'),        /* addressing mode attributes */
  121.     gestalt32BitAddressing        = 0,                            /* using 32-bit addressing mode */
  122.     gestalt32BitSysZone            = 1,                            /* 32-bit compatible system zone */
  123.     gestalt32BitCapable            = 2                                /* Machine is 32-bit capable */
  124. };
  125.  
  126. enum {
  127.     gestaltAFPClient            = FOUR_CHAR_CODE('afps'),
  128.     gestaltAFPClientVersionMask    = 0x0000FFFF,                    /* low word of long is the */
  129.                                                                 /* client version 0x0001 -> 0x0007*/
  130.     gestaltAFPClient3_5            = 0x0001,
  131.     gestaltAFPClient3_6            = 0x0002,
  132.     gestaltAFPClient3_6_1        = 0x0003,
  133.     gestaltAFPClient3_6_2        = 0x0004,
  134.     gestaltAFPClient3_6_3        = 0x0005,                        /* including 3.6.4, 3.6.5*/
  135.     gestaltAFPClient3_7            = 0x0006,                        /* including 3.7.1*/
  136.     gestaltAFPClient3_7_2        = 0x0007,                        /* including 3.7.3, 3.7.4*/
  137.     gestaltAFPClient3_8            = 0x0008,
  138.     gestaltAFPClient3_8_1        = 0x0009,                        /* including 3.8.2 */
  139.     gestaltAFPClient3_8_3        = 0x000A,
  140.     gestaltAFPClient3_8_4        = 0x000B,                        /* including 3.8.5, 3.8.6 */
  141.     gestaltAFPClientAttributeMask = (long)0xFFFF0000,            /* high word of long is a */
  142.                                                                 /* set of attribute bits*/
  143.     gestaltAFPClientCfgRsrc        = 16,                            /* Client uses config resources*/
  144.     gestaltAFPClientSupportsIP    = 29,                            /* Client supports AFP over TCP/IP*/
  145.     gestaltAFPClientVMUI        = 30,                            /* Client can put up UI from the PBVolMount trap*/
  146.     gestaltAFPClientMultiReq    = 31                            /* Client supports multiple outstanding requests*/
  147. };
  148.  
  149.  
  150. enum {
  151.     gestaltAliasMgrAttr            = FOUR_CHAR_CODE('alis'),        /* Alias Mgr Attributes */
  152.     gestaltAliasMgrPresent        = 0,                            /* True if the Alias Mgr is present */
  153.     gestaltAliasMgrSupportsRemoteAppletalk = 1,                    /* True if the Alias Mgr knows about Remote Appletalk */
  154.     gestaltAliasMgrSupportsAOCEKeychain = 2,                    /* True if the Alias Mgr knows about the AOCE Keychain */
  155.     gestaltAliasMgrResolveAliasFileWithMountOptions = 3            /* True if the Alias Mgr implements gestaltAliasMgrResolveAliasFileWithMountOptions() and IsAliasFile() */
  156. };
  157.  
  158. /* Gestalt selector and values for the Appearance Manager */
  159. enum {
  160.     gestaltAppearanceAttr        = FOUR_CHAR_CODE('appr'),
  161.     gestaltAppearanceExists        = 0,
  162.     gestaltAppearanceCompatMode    = 1
  163. };
  164.  
  165. /* Gestalt selector for determining Appearance Manager version      */
  166. /* If this selector does not exist, but gestaltAppearanceAttr     */
  167. /* does, it indicates that the 1.0 version is installed. This     */
  168. /* gestalt returns a BCD number representing the version of the     */
  169. /* Appearance Manager that is currently running, e.g. 0x0101 for */
  170. /* version 1.0.1.                                                 */
  171. enum {
  172.     gestaltAppearanceVersion    = FOUR_CHAR_CODE('apvr')
  173. };
  174.  
  175. enum {
  176.     gestaltArbitorAttr            = FOUR_CHAR_CODE('arb '),
  177.     gestaltSerialArbitrationExists = 0                            /* this bit if the serial port arbitrator exists*/
  178. };
  179.  
  180. enum {
  181.     gestaltAppleScriptVersion    = FOUR_CHAR_CODE('ascv')        /* AppleScript version*/
  182. };
  183.  
  184. enum {
  185.     gestaltAppleScriptAttr        = FOUR_CHAR_CODE('ascr'),        /* AppleScript attributes*/
  186.     gestaltAppleScriptPresent    = 0,
  187.     gestaltAppleScriptPowerPCSupport = 1
  188. };
  189.  
  190. enum {
  191.     gestaltATAAttr                = FOUR_CHAR_CODE('ata '),        /* ATA is the driver to support IDE hard disks */
  192.     gestaltATAPresent            = 0                                /* if set, ATA Manager is present */
  193. };
  194.  
  195. enum {
  196.     gestaltATalkVersion            = FOUR_CHAR_CODE('atkv')        /* Detailed AppleTalk version; see comment above for format */
  197. };
  198.  
  199. enum {
  200.     gestaltAppleTalkVersion        = FOUR_CHAR_CODE('atlk')        /* appletalk version */
  201. };
  202.  
  203. /*
  204.     FORMAT OF gestaltATalkVersion RESPONSE
  205.     --------------------------------------
  206.     The version is stored in the high three bytes of the response value.  Let us number
  207.     the bytes in the response value from 0 to 3, where 0 is the least-significant byte.
  208.  
  209.         Byte#:       3 2 1 0
  210.         Value:    0xMMNNRR00
  211.  
  212.     Byte 3 (MM) contains the major revision number, byte 2 (NN) contains the minor
  213.     revision number, and byte 1 (RR) contains a constant that represents the release
  214.     stage.  Byte 0 always contains 0x00.  The constants for the release stages are:
  215.  
  216.         development = 0x20
  217.         alpha        = 0x40
  218.         beta        = 0x60
  219.         final        = 0x80
  220.         release        = 0x80
  221.  
  222.     For example, if you call Gestalt with the 'atkv' selector when AppleTalk version 57
  223.     is loaded, you receive the long integer response value 0x39008000.
  224. */
  225. enum {
  226.     gestaltAUXVersion            = FOUR_CHAR_CODE('a/ux')        /* a/ux version, if present */
  227. };
  228.  
  229. enum {
  230.     gestaltBusClkSpeed            = FOUR_CHAR_CODE('bclk')        /* main I/O bus clock speed in hertz */
  231. };
  232.  
  233. enum {
  234.     gestaltCloseViewAttr        = FOUR_CHAR_CODE('BSDa'),        /* CloseView attributes */
  235.     gestaltCloseViewEnabled        = 0,                            /* Closeview enabled (dynamic bit - returns current state) */
  236.     gestaltCloseViewDisplayMgrFriendly = 1                        /* Closeview compatible with Display Manager (FUTURE) */
  237. };
  238.  
  239. enum {
  240.     gestaltCarbonVersion        = FOUR_CHAR_CODE('cbon')        /* version of Carbon API present in system */
  241. };
  242.  
  243. enum {
  244.     gestaltCFMAttr                = FOUR_CHAR_CODE('cfrg'),        /* Selector for information about the Code Fragment Manager */
  245.     gestaltCFMPresent            = 0,                            /* True if the Code Fragment Manager is present */
  246.     gestaltCFMPresentMask        = 0x0001,
  247.     gestaltCFM99Present            = 2,                            /* True if the CFM-99 features are present. */
  248.     gestaltCFM99PresentMask        = 0x0004
  249. };
  250.  
  251. enum {
  252.     gestaltCollectionMgrVersion    = FOUR_CHAR_CODE('cltn')        /* Collection Manager version */
  253. };
  254.  
  255. enum {
  256.     gestaltColorMatchingAttr    = FOUR_CHAR_CODE('cmta'),        /* ColorSync attributes */
  257.     gestaltHighLevelMatching    = 0,
  258.     gestaltColorMatchingLibLoaded = 1
  259. };
  260.  
  261. enum {
  262.     gestaltColorMatchingVersion    = FOUR_CHAR_CODE('cmtc'),
  263.     gestaltColorSync10            = 0x0100,                        /* 0x0100 & 0x0110 _Gestalt versions for 1.0-1.0.3 product */
  264.     gestaltColorSync11            = 0x0110,                        /*   0x0100 == low-level matching only */
  265.     gestaltColorSync104            = 0x0104,                        /* Real version, by popular demand */
  266.     gestaltColorSync105            = 0x0105,
  267.     gestaltColorSync20            = 0x0200,                        /* ColorSync 2.0 */
  268.     gestaltColorSync21            = 0x0210,
  269.     gestaltColorSync211            = 0x0211,
  270.     gestaltColorSync212            = 0x0212,
  271.     gestaltColorSync213            = 0x0213,
  272.     gestaltColorSync25            = 0x0250,
  273.     gestaltColorSync26            = 0x0260,
  274.     gestaltColorSync261            = 0x0261,
  275.     gestaltColorSync30            = 0x0300
  276. };
  277.  
  278. enum {
  279.     gestaltControlMgrAttr        = FOUR_CHAR_CODE('cntl'),        /* Control Mgr*/
  280.     gestaltControlMgrPresent    = (1L << 0)
  281. };
  282.  
  283. enum {
  284.     gestaltConnMgrAttr            = FOUR_CHAR_CODE('conn'),        /* connection mgr attributes    */
  285.     gestaltConnMgrPresent        = 0,
  286.     gestaltConnMgrCMSearchFix    = 1,                            /* Fix to CMAddSearch?     */
  287.     gestaltConnMgrErrorString    = 2,                            /* has CMGetErrorString() */
  288.     gestaltConnMgrMultiAsyncIO    = 3                                /* CMNewIOPB, CMDisposeIOPB, CMPBRead, CMPBWrite, CMPBIOKill */
  289. };
  290.  
  291. enum {
  292.     gestaltColorPickerVersion    = FOUR_CHAR_CODE('cpkr'),        /* returns version of ColorPicker */
  293.     gestaltColorPicker            = FOUR_CHAR_CODE('cpkr')        /* gestaltColorPicker is old name for gestaltColorPickerVersion */
  294. };
  295.  
  296. enum {
  297.     gestaltComponentMgr            = FOUR_CHAR_CODE('cpnt')        /* Component Mgr version */
  298. };
  299.  
  300. /*
  301.     The gestaltNativeCPUtype ('cput') selector can be used to determine the
  302.     native CPU type for all Macs running System 7.5 or later.
  303.  
  304.     The 'cput' selector is not available when running System 7.0 (or earlier)
  305.     on most 68K machines.  If 'cput' is not available, then the 'proc' selector
  306.     should be used to determine the processor type.
  307.  
  308.     An application should always try the 'cput' selector first.  This is because,
  309.     on PowerPC machines, the 'proc' selector will reflect the CPU type of the
  310.     emulator's "virtual processor" rather than the native CPU type.
  311.  
  312.     The values specified below are accurate.  Prior versions of the Gestalt
  313.     interface file contained values that were off by one.
  314.  
  315.     The Quadra 840AV and the Quadra 660AV contain a bug in the ROM code that
  316.     causes the 'cput' selector to respond with the value 5.  This behavior
  317.     occurs only when running System 7.1.  System 7.5 fixes the bug by replacing
  318.     the faulty 'cput' selector function with the correct one.
  319.  
  320.     The gestaltNativeCPUfamily ('cpuf') selector can be used to determine the
  321.     general family the native CPU is in. This can be helpful for determing how
  322.     blitters and things should be written. In general, it is smarter to use this
  323.     selector (when available) than gestaltNativeCPUtype since newer processors
  324.     in the same family can be handled without revising your code.
  325.  
  326.     gestaltNativeCPUfamily uses the same results as gestaltNativeCPUtype, but
  327.     will only return certain CPU values.
  328. */
  329. enum {
  330.     gestaltNativeCPUtype        = FOUR_CHAR_CODE('cput'),        /* Native CPU type                                       */
  331.     gestaltNativeCPUfamily        = FOUR_CHAR_CODE('cpuf'),        /* Native CPU family                                  */
  332.     gestaltCPU68000                = 0,                            /* Various 68k CPUs...     */
  333.     gestaltCPU68010                = 1,
  334.     gestaltCPU68020                = 2,
  335.     gestaltCPU68030                = 3,
  336.     gestaltCPU68040                = 4,
  337.     gestaltCPU601                = 0x0101,                        /* IBM 601                                                 */
  338.     gestaltCPU603                = 0x0103,
  339.     gestaltCPU604                = 0x0104,
  340.     gestaltCPU603e                = 0x0106,
  341.     gestaltCPU603ev                = 0x0107,
  342.     gestaltCPU750                = 0x0108,                        /* Also 740 - "G3" */
  343.     gestaltCPU604e                = 0x0109,
  344.     gestaltCPU604ev                = 0x010A                        /* Mach 5, 250Mhz and up */
  345. };
  346.  
  347. #if TARGET_OS_WIN32
  348. enum {
  349.                                                                 /* x86 CPUs all start with 'i' in the high nybble */
  350.     gestaltCPU486                = FOUR_CHAR_CODE('i486'),
  351.     gestaltCPUPentium            = FOUR_CHAR_CODE('i586'),
  352.     gestaltCPUPentiumPro        = FOUR_CHAR_CODE('i5pr'),
  353.     gestaltCPUPentiumII            = FOUR_CHAR_CODE('i5ii'),
  354.     gestaltCPUX86                = FOUR_CHAR_CODE('ixxx')
  355. };
  356.  
  357. #endif  /* TARGET_OS_WIN32 */
  358.  
  359. enum {
  360.     gestaltCRMAttr                = FOUR_CHAR_CODE('crm '),        /* comm resource mgr attributes */
  361.     gestaltCRMPresent            = 0,
  362.     gestaltCRMPersistentFix        = 1,                            /* fix for persistent tools */
  363.     gestaltCRMToolRsrcCalls        = 2                                /* has CRMGetToolResource/ReleaseToolResource */
  364. };
  365.  
  366. enum {
  367.     gestaltControlStripVersion    = FOUR_CHAR_CODE('csvr')        /* Control Strip version (was 'sdvr') */
  368. };
  369.  
  370. enum {
  371.     gestaltCTBVersion            = FOUR_CHAR_CODE('ctbv')        /* CommToolbox version */
  372. };
  373.  
  374. enum {
  375.     gestaltDBAccessMgrAttr        = FOUR_CHAR_CODE('dbac'),        /* Database Access Mgr attributes */
  376.     gestaltDBAccessMgrPresent    = 0                                /* True if Database Access Mgr present */
  377. };
  378.  
  379. enum {
  380.     gestaltSDPFindVersion        = FOUR_CHAR_CODE('dfnd')        /* OCE Standard Directory Panel*/
  381. };
  382.  
  383. enum {
  384.     gestaltDictionaryMgrAttr    = FOUR_CHAR_CODE('dict'),        /* Dictionary Manager attributes */
  385.     gestaltDictionaryMgrPresent    = 0                                /* Dictionary Manager attributes */
  386. };
  387.  
  388. enum {
  389.     gestaltDITLExtAttr            = FOUR_CHAR_CODE('ditl'),        /* AppenDITL, etc. calls from CTB */
  390.     gestaltDITLExtPresent        = 0,                            /* True if calls are present */
  391.     gestaltDITLExtSupportsIctb    = 1                                /* True if AppendDITL, ShortenDITL support 'ictb's */
  392. };
  393.  
  394. enum {
  395.     gestaltDialogMgrAttr        = FOUR_CHAR_CODE('dlog'),        /* Dialog Mgr*/
  396.     gestaltDialogMgrPresent        = (1L << 0)
  397. };
  398.  
  399. enum {
  400.     gestaltDesktopPicturesAttr    = FOUR_CHAR_CODE('dkpx'),        /* Desktop Pictures attributes */
  401.     gestaltDesktopPicturesInstalled = 0,                        /* True if control panel is installed */
  402.     gestaltDesktopPicturesDisplayed = 1                            /* True if a picture is currently displayed */
  403. };
  404.  
  405. enum {
  406.     gestaltDisplayMgrVers        = FOUR_CHAR_CODE('dplv')        /* Display Manager version */
  407. };
  408.  
  409. enum {
  410.     gestaltDisplayMgrAttr        = FOUR_CHAR_CODE('dply'),        /* Display Manager attributes */
  411.     gestaltDisplayMgrPresent    = 0,                            /* True if Display Mgr is present */
  412.     gestaltDisplayMgrCanSwitchMirrored = 2,                        /* True if Display Mgr can switch modes on mirrored displays */
  413.     gestaltDisplayMgrSetDepthNotifies = 3,                        /* True SetDepth generates displays mgr notification */
  414.     gestaltDisplayMgrCanConfirm    = 4,                            /* True Display Manager supports DMConfirmConfiguration */
  415.     gestaltDisplayMgrColorSyncAware = 5,                        /* True if Display Manager supports profiles for displays */
  416.     gestaltDisplayMgrGeneratesProfiles = 6                        /* True if Display Manager will automatically generate profiles for displays */
  417. };
  418.  
  419. enum {
  420.     gestaltDragMgrAttr            = FOUR_CHAR_CODE('drag'),        /* Drag Manager attributes */
  421.     gestaltDragMgrPresent        = 0,                            /* Drag Manager is present */
  422.     gestaltDragMgrFloatingWind    = 1,                            /* Drag Manager supports floating windows */
  423.     gestaltPPCDragLibPresent    = 2,                            /* Drag Manager PPC DragLib is present */
  424.     gestaltDragMgrHasImageSupport = 3,                            /* Drag Manager allows SetDragImage call */
  425.     gestaltCanStartDragInFloatWindow = 4                        /* Drag Manager supports starting a drag in a floating window */
  426. };
  427.  
  428. enum {
  429.     gestaltDigitalSignatureVersion = FOUR_CHAR_CODE('dsig')        /* returns Digital Signature Toolbox version in low-order word*/
  430. };
  431.  
  432. /*
  433.    Desktop Printing Feature Gestalt
  434.    Use this gestalt to check if third-party printer driver support is available
  435. */
  436. enum {
  437.     gestaltDTPFeatures            = FOUR_CHAR_CODE('dtpf'),
  438.     kDTPThirdPartySupported        = 0x00000004                    /* mask for checking if third-party drivers are supported*/
  439. };
  440.  
  441.  
  442. /*
  443.    Desktop Printer Info Gestalt
  444.    Use this gestalt to get a hold of information for all of the active desktop printers
  445. */
  446. enum {
  447.     gestaltDTPInfo                = FOUR_CHAR_CODE('dtpx')        /* returns GestaltDTPInfoHdle*/
  448. };
  449.  
  450. enum {
  451.     gestaltEasyAccessAttr        = FOUR_CHAR_CODE('easy'),        /* Easy Access attributes */
  452.     gestaltEasyAccessOff        = 0,                            /* if Easy Access present, but off (no icon) */
  453.     gestaltEasyAccessOn            = 1,                            /* if Easy Access "On" */
  454.     gestaltEasyAccessSticky        = 2,                            /* if Easy Access "Sticky" */
  455.     gestaltEasyAccessLocked        = 3                                /* if Easy Access "Locked" */
  456. };
  457.  
  458. enum {
  459.     gestaltEditionMgrAttr        = FOUR_CHAR_CODE('edtn'),        /* Edition Mgr attributes */
  460.     gestaltEditionMgrPresent    = 0,                            /* True if Edition Mgr present */
  461.     gestaltEditionMgrTranslationAware = 1                        /* True if edition manager is translation manager aware */
  462. };
  463.  
  464. enum {
  465.     gestaltAppleEventsAttr        = FOUR_CHAR_CODE('evnt'),        /* Apple Events attributes */
  466.     gestaltAppleEventsPresent    = 0,                            /* True if Apple Events present */
  467.     gestaltScriptingSupport        = 1,
  468.     gestaltOSLInSystem            = 2                                /* OSL is in system so don't use the one linked in to app */
  469. };
  470.  
  471. enum {
  472.     gestaltExtensionTableVersion = FOUR_CHAR_CODE('etbl')        /* ExtensionTable version */
  473. };
  474.  
  475.  
  476. enum {
  477.     gestaltFBCIndexingState        = FOUR_CHAR_CODE('fbci'),        /* Find By Content indexing state*/
  478.     gestaltFBCindexingSafe        = 0,                            /* any search will result in synchronous wait*/
  479.     gestaltFBCindexingCritical    = 1                                /* any search will execute immediately*/
  480. };
  481.  
  482. enum {
  483.     gestaltFBCVersion            = FOUR_CHAR_CODE('fbcv'),        /* Find By Content version*/
  484.     gestaltFBCCurrentVersion    = 0x0011                        /* First release */
  485. };
  486.  
  487.  
  488. enum {
  489.     gestaltFloppyAttr            = FOUR_CHAR_CODE('flpy'),        /* Floppy disk drive/driver attributes */
  490.     gestaltFloppyIsMFMOnly        = 0,                            /* Floppy driver only supports MFM disk formats */
  491.     gestaltFloppyIsManualEject    = 1,                            /* Floppy drive, driver, and file system are in manual-eject mode */
  492.     gestaltFloppyUsesDiskInPlace = 2                            /* Floppy drive must have special DISK-IN-PLACE output; standard DISK-CHANGED not used */
  493. };
  494.  
  495. enum {
  496.     gestaltFinderAttr            = FOUR_CHAR_CODE('fndr'),        /* Finder attributes */
  497.     gestaltFinderDropEvent        = 0,                            /* Finder recognizes drop event */
  498.     gestaltFinderMagicPlacement    = 1,                            /* Finder supports magic icon placement */
  499.     gestaltFinderCallsAEProcess    = 2,                            /* Finder calls AEProcessAppleEvent */
  500.     gestaltOSLCompliantFinder    = 3,                            /* Finder is scriptable and recordable */
  501.     gestaltFinderSupports4GBVolumes = 4,                        /* Finder correctly handles 4GB volumes */
  502.     gestaltFinderHasClippings    = 6,                            /* Finder supports Drag Manager clipping files */
  503.     gestaltFinderFullDragManagerSupport = 7,                    /* Finder accepts 'hfs ' flavors properly */
  504.     gestaltFinderFloppyRootComments = 8,                        /* in MacOS 8 and later, will be set if Finder ever supports comments on Floppy icons */
  505.     gestaltFinderLargeAndNotSavedFlavorsOK = 9,                    /* in MacOS 8 and later, this bit is set if drags with >1024-byte flavors and flavorNotSaved flavors work reliably */
  506.     gestaltFinderUsesExtensibleFolderManager = 10                /* Finder uses Extensible Folder Manager (for example, for Magic Routing) */
  507. };
  508.  
  509. enum {
  510.     gestaltFindFolderAttr        = FOUR_CHAR_CODE('fold'),        /* Folder Mgr attributes */
  511.     gestaltFindFolderPresent    = 0                                /* True if Folder Mgr present */
  512. };
  513.  
  514.  
  515. enum {
  516.     gestaltFolderDescSupport    = 1,                            /* True if Folder Mgr has FolderDesc calls */
  517.     gestaltFolderMgrFollowsAliasesWhenResolving = 2,            /* True if Folder Mgr follows folder aliases */
  518.     gestaltFolderMgrSupportsExtendedCalls = 3                    /* True if Folder Mgr supports the Extended calls */
  519. };
  520.  
  521. enum {
  522.     gestaltFindFolderRedirectionAttr = FOUR_CHAR_CODE('fole')
  523. };
  524.  
  525. enum {
  526.     gestaltFontMgrAttr            = FOUR_CHAR_CODE('font'),        /* Font Mgr attributes */
  527.     gestaltOutlineFonts            = 0                                /* True if Outline Fonts supported */
  528. };
  529.  
  530. enum {
  531.     gestaltFPUType                = FOUR_CHAR_CODE('fpu '),        /* fpu type */
  532.     gestaltNoFPU                = 0,                            /* no FPU */
  533.     gestalt68881                = 1,                            /* 68881 FPU */
  534.     gestalt68882                = 2,                            /* 68882 FPU */
  535.     gestalt68040FPU                = 3                                /* 68040 built-in FPU */
  536. };
  537.  
  538. enum {
  539.     gestaltFSAttr                = FOUR_CHAR_CODE('fs  '),        /* file system attributes */
  540.     gestaltFullExtFSDispatching    = 0,                            /* has really cool new HFSDispatch dispatcher */
  541.     gestaltHasFSSpecCalls        = 1,                            /* has FSSpec calls */
  542.     gestaltHasFileSystemManager    = 2,                            /* has a file system manager */
  543.     gestaltFSMDoesDynamicLoad    = 3,                            /* file system manager supports dynamic loading */
  544.     gestaltFSSupports4GBVols    = 4,                            /* file system supports 4 gigabyte volumes */
  545.     gestaltFSSupports2TBVols    = 5,                            /* file system supports 2 terabyte volumes */
  546.     gestaltHasExtendedDiskInit    = 6,                            /* has extended Disk Initialization calls */
  547.     gestaltDTMgrSupportsFSM        = 7,                            /* Desktop Manager support FSM-based foreign file systems */
  548.     gestaltFSNoMFSVols            = 8,                            /* file system doesn't supports MFS volumes */
  549.     gestaltFSSupportsHFSPlusVols = 9,                            /* file system supports HFS Plus volumes */
  550.     gestaltFSIncompatibleDFA82    = 10                            /* VCB and FCB structures changed; DFA 8.2 is incompatible */
  551. };
  552.  
  553. enum {
  554.     gestaltHasHFSPlusAPIs        = 12,                            /* file system supports HFS Plus APIs */
  555.     gestaltMustUseFCBAccessors    = 13                            /* FCBSPtr and FSFCBLen are invalid - must use FSM FCB accessor functions*/
  556. };
  557.  
  558. enum {
  559.     gestaltAdminFeaturesFlagsAttr = FOUR_CHAR_CODE('fred'),        /* a set of admin flags, mostly useful internally. */
  560.     gestaltFinderUsesSpecialOpenFoldersFile = 0                    /* the Finder uses a special file to store the list of open folders */
  561. };
  562.  
  563. enum {
  564.     gestaltFSMVersion            = FOUR_CHAR_CODE('fsm ')        /* returns version of HFS External File Systems Manager (FSM) */
  565. };
  566.  
  567. enum {
  568.     gestaltFXfrMgrAttr            = FOUR_CHAR_CODE('fxfr'),        /* file transfer manager attributes */
  569.     gestaltFXfrMgrPresent        = 0,
  570.     gestaltFXfrMgrMultiFile        = 1,                            /* supports FTSend and FTReceive */
  571.     gestaltFXfrMgrErrorString    = 2,                            /* supports FTGetErrorString */
  572.     gestaltFXfrMgrAsync            = 3                                /*supports FTSendAsync, FTReceiveAsync, FTCompletionAsync*/
  573. };
  574.  
  575. enum {
  576.     gestaltGraphicsAttr            = FOUR_CHAR_CODE('gfxa'),        /* Quickdraw GX attributes selector */
  577.     gestaltGraphicsIsDebugging    = 0x00000001,
  578.     gestaltGraphicsIsLoaded        = 0x00000002,
  579.     gestaltGraphicsIsPowerPC    = 0x00000004
  580. };
  581.  
  582. enum {
  583.     gestaltGraphicsVersion        = FOUR_CHAR_CODE('grfx'),        /* Quickdraw GX version selector */
  584.     gestaltCurrentGraphicsVersion = 0x00010200                    /* the version described in this set of headers */
  585. };
  586.  
  587. enum {
  588.     gestaltHardwareAttr            = FOUR_CHAR_CODE('hdwr'),        /* hardware attributes */
  589.     gestaltHasVIA1                = 0,                            /* VIA1 exists */
  590.     gestaltHasVIA2                = 1,                            /* VIA2 exists */
  591.     gestaltHasASC                = 3,                            /* Apple Sound Chip exists */
  592.     gestaltHasSCC                = 4,                            /* SCC exists */
  593.     gestaltHasSCSI                = 7,                            /* SCSI exists */
  594.     gestaltHasSoftPowerOff        = 19,                            /* Capable of software power off */
  595.     gestaltHasSCSI961            = 21,                            /* 53C96 SCSI controller on internal bus */
  596.     gestaltHasSCSI962            = 22,                            /* 53C96 SCSI controller on external bus */
  597.     gestaltHasUniversalROM        = 24,                            /* Do we have a Universal ROM? */
  598.     gestaltHasEnhancedLtalk        = 30                            /* Do we have Enhanced LocalTalk? */
  599. };
  600.  
  601. enum {
  602.     gestaltHelpMgrAttr            = FOUR_CHAR_CODE('help'),        /* Help Mgr Attributes */
  603.     gestaltHelpMgrPresent        = 0,                            /* true if help mgr is present */
  604.     gestaltHelpMgrExtensions    = 1,                            /* true if help mgr extensions are installed */
  605.     gestaltAppleGuideIsDebug    = 30,
  606.     gestaltAppleGuidePresent    = 31                            /* true if AppleGuide is installed */
  607. };
  608.  
  609. enum {
  610.     gestaltHardwareVendorCode    = FOUR_CHAR_CODE('hrad'),        /* Returns hardware vendor information */
  611.     gestaltHardwareVendorApple    = FOUR_CHAR_CODE('Appl')        /* Hardware built by Apple */
  612. };
  613.  
  614. enum {
  615.     gestaltCompressionMgr        = FOUR_CHAR_CODE('icmp')        /* returns version of the Image Compression Manager */
  616. };
  617.  
  618. enum {
  619.     gestaltIconUtilitiesAttr    = FOUR_CHAR_CODE('icon'),        /* Icon Utilities attributes  (Note: available in System 7.0, despite gestalt) */
  620.     gestaltIconUtilitiesPresent    = 0,                            /* true if icon utilities are present */
  621.     gestaltIconUtilitiesHas48PixelIcons = 1,                    /* true if 48x48 icons are supported by IconUtilities */
  622.     gestaltIconUtilitiesHas32BitIcons = 2,                        /* true if 32-bit deep icons are supported */
  623.     gestaltIconUtilitiesHas8BitDeepMasks = 3,                    /* true if 8-bit deep masks are supported */
  624.     gestaltIconUtilitiesHasIconServices = 4                        /* true if IconServices is present */
  625. };
  626.  
  627. enum {
  628.     gestaltInternalDisplay        = FOUR_CHAR_CODE('idsp')        /* slot number of internal display location */
  629. };
  630.  
  631. /*
  632.     To obtain information about the connected keyboard(s), one should
  633.     use the ADB Manager API.  See Technical Note OV16 for details.
  634. */
  635. enum {
  636.     gestaltKeyboardType            = FOUR_CHAR_CODE('kbd '),        /* keyboard type */
  637.     gestaltMacKbd                = 1,
  638.     gestaltMacAndPad            = 2,
  639.     gestaltMacPlusKbd            = 3,
  640.     gestaltExtADBKbd            = 4,
  641.     gestaltStdADBKbd            = 5,
  642.     gestaltPrtblADBKbd            = 6,
  643.     gestaltPrtblISOKbd            = 7,
  644.     gestaltStdISOADBKbd            = 8,
  645.     gestaltExtISOADBKbd            = 9,
  646.     gestaltADBKbdII                = 10,
  647.     gestaltADBISOKbdII            = 11,
  648.     gestaltPwrBookADBKbd        = 12,
  649.     gestaltPwrBookISOADBKbd        = 13,
  650.     gestaltAppleAdjustKeypad    = 14,
  651.     gestaltAppleAdjustADBKbd    = 15,
  652.     gestaltAppleAdjustISOKbd    = 16,
  653.     gestaltJapanAdjustADBKbd    = 17,                            /* Japan Adjustable Keyboard */
  654.     gestaltPwrBkExtISOKbd        = 20,                            /* PowerBook Extended International Keyboard with function keys */
  655.     gestaltPwrBkExtJISKbd        = 21,                            /* PowerBook Extended Japanese Keyboard with function keys         */
  656.     gestaltPwrBkExtADBKbd        = 24,                            /* PowerBook Extended Domestic Keyboard with function keys         */
  657.     gestaltPS2Keyboard            = 27,                            /* PS2 keyboard */
  658.     gestaltPwrBkSubDomKbd        = 28,                            /* PowerBook Subnote Domestic Keyboard with function keys w/  inverted T     */
  659.     gestaltPwrBkSubISOKbd        = 29,                            /* PowerBook Subnote International Keyboard with function keys w/  inverted T     */
  660.     gestaltPwrBkSubJISKbd        = 30,                            /* PowerBook Subnote Japanese Keyboard with function keys w/ inverted T         */
  661.     gestaltPwrBkEKDomKbd        = 195,                            /* (0xC3) PowerBook Domestic Keyboard with Embedded Keypad, function keys & inverted T     */
  662.     gestaltPwrBkEKISOKbd        = 196,                            /* (0xC4) PowerBook International Keyboard with Embedded Keypad, function keys & inverted T     */
  663.     gestaltPwrBkEKJISKbd        = 197,                            /* (0xC5) PowerBook Japanese Keyboard with Embedded Keypad, function keys & inverted T         */
  664.     gestaltUSBCosmoANSIKbd        = 198,                            /* (0xC6) Cosmo USB Domestic (ANSI) Keyboard */
  665.     gestaltUSBCosmoISOKbd        = 199,                            /* (0xC7) Cosmo USB International (ISO) Keyboard */
  666.     gestaltUSBCosmoJISKbd        = 200,                            /* (0xC8) Cosmo USB Japanese (JIS) Keyboard */
  667.     gestaltPwrBk99JISKbd        = 201                            /* (0xC9) '99 PowerBook JIS Keyboard with Embedded Keypad, function keys & inverted T     */
  668. };
  669.  
  670. enum {
  671.     gestaltLowMemorySize        = FOUR_CHAR_CODE('lmem')        /* size of low memory area */
  672. };
  673.  
  674. enum {
  675.     gestaltLogicalRAMSize        = FOUR_CHAR_CODE('lram')        /* logical ram size */
  676. };
  677.  
  678. /*
  679.     MACHINE TYPE CONSTANTS NAMING CONVENTION
  680.  
  681.         All future machine type constant names take the following form:
  682.  
  683.             gestalt<lineName><modelNumber>
  684.  
  685.     Line Names
  686.  
  687.         The following table contains the lines currently produced by Apple and the
  688.         lineName substrings associated with them:
  689.  
  690.             Line                        lineName
  691.             -------------------------    ------------
  692.             Macintosh LC                "MacLC"
  693.             Macintosh Performa            "Performa"
  694.             Macintosh PowerBook            "PowerBook"
  695.             Macintosh PowerBook Duo        "PowerBookDuo"
  696.             Power Macintosh                "PowerMac"
  697.             Apple Workgroup Server        "AWS"
  698.  
  699.         The following table contains lineNames for some discontinued lines:
  700.  
  701.             Line                        lineName
  702.             -------------------------    ------------
  703.             Macintosh Quadra            "MacQuadra" (preferred)
  704.                                         "Quadra" (also used, but not preferred)
  705.             Macintosh Centris            "MacCentris"
  706.  
  707.     Model Numbers
  708.  
  709.         The modelNumber is a string representing the specific model of the machine
  710.         within its particular line.  For example, for the Power Macintosh 8100/80,
  711.         the modelNumber is "8100".
  712.  
  713.         Some Performa & LC model numbers contain variations in the rightmost 1 or 2
  714.         digits to indicate different RAM and Hard Disk configurations.  A single
  715.         machine type is assigned for all variations of a specific model number.  In
  716.         this case, the modelNumber string consists of the constant leftmost part
  717.         of the model number with 0s for the variant digits.  For example, the
  718.         Performa 6115 and Performa 6116 are both return the same machine type
  719.         constant:  gestaltPerforma6100.
  720.  
  721.  
  722.     OLD NAMING CONVENTIONS
  723.  
  724.     The "Underscore Speed" suffix
  725.  
  726.         In the past, Apple differentiated between machines that had the same model
  727.         number but different speeds.  For example, the Power Macintosh 8100/80 and
  728.         Power Macintosh 8100/100 return different machine type constants.  This is
  729.         why some existing machine type constant names take the form:
  730.  
  731.             gestalt<lineName><modelNumber>_<speed>
  732.  
  733.         e.g.
  734.  
  735.             gestaltPowerMac8100_110
  736.             gestaltPowerMac7100_80
  737.             gestaltPowerMac7100_66
  738.  
  739.         It is no longer necessary to use the "underscore speed" suffix.  Starting with
  740.         the Power Surge machines (Power Macintosh 7200, 7500, 8500 and 9500), speed is
  741.         no longer used to differentiate between machine types.  This is why a Power
  742.         Macintosh 7200/75 and a Power Macintosh 7200/90 return the same machine type
  743.         constant:  gestaltPowerMac7200.
  744.  
  745.     The "Screen Type" suffix
  746.  
  747.         All PowerBook models prior to the PowerBook 190, and all PowerBook Duo models
  748.         before the PowerBook Duo 2300 take the form:
  749.  
  750.             gestalt<lineName><modelNumber><screenType>
  751.  
  752.         Where <screenType> is "c" or the empty string.
  753.  
  754.         e.g.
  755.  
  756.             gestaltPowerBook100
  757.             gestaltPowerBookDuo280
  758.             gestaltPowerBookDuo280c
  759.             gestaltPowerBook180
  760.             gestaltPowerBook180c
  761.  
  762.         Starting with the PowerBook 190 series and the PowerBook Duo 2300 series, machine
  763.         types are no longer differentiated based on screen type.  This is why a PowerBook
  764.         5300cs/100 and a PowerBook 5300c/100 both return the same machine type constant:
  765.         gestaltPowerBook5300.
  766.  
  767.         Macintosh LC 630                gestaltMacLC630
  768.         Macintosh Performa 6200            gestaltPerforma6200
  769.         Macintosh Quadra 700            gestaltQuadra700
  770.         Macintosh PowerBook 5300        gestaltPowerBook5300
  771.         Macintosh PowerBook Duo 2300    gestaltPowerBookDuo2300
  772.         Power Macintosh 8500            gestaltPowerMac8500
  773. */
  774.  
  775. enum {
  776.     gestaltMachineType            = FOUR_CHAR_CODE('mach'),        /* machine type */
  777.     gestaltClassic                = 1,
  778.     gestaltMacXL                = 2,
  779.     gestaltMac512KE                = 3,
  780.     gestaltMacPlus                = 4,
  781.     gestaltMacSE                = 5,
  782.     gestaltMacII                = 6,
  783.     gestaltMacIIx                = 7,
  784.     gestaltMacIIcx                = 8,
  785.     gestaltMacSE030                = 9,
  786.     gestaltPortable                = 10,
  787.     gestaltMacIIci                = 11,
  788.     gestaltPowerMac8100_120        = 12,
  789.     gestaltMacIIfx                = 13,
  790.     gestaltMacClassic            = 17,
  791.     gestaltMacIIsi                = 18,
  792.     gestaltMacLC                = 19,
  793.     gestaltMacQuadra900            = 20,
  794.     gestaltPowerBook170            = 21,
  795.     gestaltMacQuadra700            = 22,
  796.     gestaltClassicII            = 23,
  797.     gestaltPowerBook100            = 24,
  798.     gestaltPowerBook140            = 25,
  799.     gestaltMacQuadra950            = 26,
  800.     gestaltMacLCIII                = 27,
  801.     gestaltPerforma450            = gestaltMacLCIII,
  802.     gestaltPowerBookDuo210        = 29,
  803.     gestaltMacCentris650        = 30,
  804.     gestaltPowerBookDuo230        = 32,
  805.     gestaltPowerBook180            = 33,
  806.     gestaltPowerBook160            = 34,
  807.     gestaltMacQuadra800            = 35,
  808.     gestaltMacQuadra650            = 36,
  809.     gestaltMacLCII                = 37,
  810.     gestaltPowerBookDuo250        = 38,
  811.     gestaltAWS9150_80            = 39,
  812.     gestaltPowerMac8100_110        = 40,
  813.     gestaltAWS8150_110            = gestaltPowerMac8100_110,
  814.     gestaltPowerMac5200            = 41,
  815.     gestaltPowerMac5260            = gestaltPowerMac5200,
  816.     gestaltPerforma5300            = gestaltPowerMac5200,
  817.     gestaltPowerMac6200            = 42,
  818.     gestaltPerforma6300            = gestaltPowerMac6200,
  819.     gestaltMacIIvi                = 44,
  820.     gestaltMacIIvm                = 45,
  821.     gestaltPerforma600            = gestaltMacIIvm,
  822.     gestaltPowerMac7100_80        = 47,
  823.     gestaltMacIIvx                = 48,
  824.     gestaltMacColorClassic        = 49,
  825.     gestaltPerforma250            = gestaltMacColorClassic,
  826.     gestaltPowerBook165c        = 50,
  827.     gestaltMacCentris610        = 52,
  828.     gestaltMacQuadra610            = 53,
  829.     gestaltPowerBook145            = 54,
  830.     gestaltPowerMac8100_100        = 55,
  831.     gestaltMacLC520                = 56,
  832.     gestaltAWS9150_120            = 57,
  833.     gestaltPowerMac6400            = 58,
  834.     gestaltPerforma6400            = gestaltPowerMac6400,
  835.     gestaltPerforma6360            = gestaltPerforma6400,
  836.     gestaltMacCentris660AV        = 60,
  837.     gestaltMacQuadra660AV        = gestaltMacCentris660AV,
  838.     gestaltPerforma46x            = 62,
  839.     gestaltPowerMac8100_80        = 65,
  840.     gestaltAWS8150_80            = gestaltPowerMac8100_80,
  841.     gestaltPowerMac9500            = 67,
  842.     gestaltPowerMac9600            = gestaltPowerMac9500,
  843.     gestaltPowerMac7500            = 68,
  844.     gestaltPowerMac7600            = gestaltPowerMac7500,
  845.     gestaltPowerMac8500            = 69,
  846.     gestaltPowerMac8600            = gestaltPowerMac8500,
  847.     gestaltAWS8550                = gestaltPowerMac7500,
  848.     gestaltPowerBook180c        = 71,
  849.     gestaltPowerBook520            = 72,
  850.     gestaltPowerBook520c        = gestaltPowerBook520,
  851.     gestaltPowerBook540            = gestaltPowerBook520,
  852.     gestaltPowerBook540c        = gestaltPowerBook520,
  853.     gestaltPowerMac5400            = 74,
  854.     gestaltPowerMac6100_60        = 75,
  855.     gestaltAWS6150_60            = gestaltPowerMac6100_60,
  856.     gestaltPowerBookDuo270c        = 77,
  857.     gestaltMacQuadra840AV        = 78,
  858.     gestaltPerforma550            = 80,
  859.     gestaltPowerBook165            = 84,
  860.     gestaltPowerBook190            = 85,
  861.     gestaltMacTV                = 88,
  862.     gestaltMacLC475                = 89,
  863.     gestaltPerforma47x            = gestaltMacLC475,
  864.     gestaltMacLC575                = 92,
  865.     gestaltMacQuadra605            = 94,
  866.     gestaltMacQuadra630            = 98,
  867.     gestaltMacLC580                = 99,
  868.     gestaltPerforma580            = gestaltMacLC580,
  869.     gestaltPowerMac6100_66        = 100,
  870.     gestaltAWS6150_66            = gestaltPowerMac6100_66,
  871.     gestaltPowerBookDuo280        = 102,
  872.     gestaltPowerBookDuo280c        = 103,
  873.     gestaltPowerMacLC475        = 104,                            /* Mac LC 475 & PPC Processor Upgrade Card*/
  874.     gestaltPowerMacPerforma47x    = gestaltPowerMacLC475,
  875.     gestaltPowerMacLC575        = 105,                            /* Mac LC 575 & PPC Processor Upgrade Card */
  876.     gestaltPowerMacPerforma57x    = gestaltPowerMacLC575,
  877.     gestaltPowerMacQuadra630    = 106,                            /* Quadra 630 & PPC Processor Upgrade Card*/
  878.     gestaltPowerMacLC630        = gestaltPowerMacQuadra630,        /* Mac LC 630 & PPC Processor Upgrade Card*/
  879.     gestaltPowerMacPerforma63x    = gestaltPowerMacQuadra630,        /* Performa 63x & PPC Processor Upgrade Card*/
  880.     gestaltPowerMac7200            = 108,
  881.     gestaltPowerMac7300            = 109,
  882.     gestaltPowerMac7100_66        = 112,
  883.     gestaltPowerBook150            = 115,
  884.     gestaltPowerMacQuadra700    = 116,                            /* Quadra 700 & Power PC Upgrade Card*/
  885.     gestaltPowerMacQuadra900    = 117,                            /* Quadra 900 & Power PC Upgrade Card */
  886.     gestaltPowerMacQuadra950    = 118,                            /* Quadra 950 & Power PC Upgrade Card */
  887.     gestaltPowerMacCentris610    = 119,                            /* Centris 610 & Power PC Upgrade Card */
  888.     gestaltPowerMacCentris650    = 120,                            /* Centris 650 & Power PC Upgrade Card */
  889.     gestaltPowerMacQuadra610    = 121,                            /* Quadra 610 & Power PC Upgrade Card */
  890.     gestaltPowerMacQuadra650    = 122,                            /* Quadra 650 & Power PC Upgrade Card */
  891.     gestaltPowerMacQuadra800    = 123,                            /* Quadra 800 & Power PC Upgrade Card */
  892.     gestaltPowerBookDuo2300        = 124,
  893.     gestaltPowerBook500PPCUpgrade = 126,
  894.     gestaltPowerBook5300        = 128,
  895.     gestaltPowerBook1400        = 310,
  896.     gestaltPowerBook3400        = 306,
  897.     gestaltPowerBook2400        = 307,
  898.     gestaltPowerBookG3Series    = 312,
  899.     gestaltPowerBookG3            = 313,
  900.     gestaltPowerBookG3Series2    = 314,
  901.     gestaltPowerMacNewWorld        = 406,                            /* All NewWorld architecture Macs (iMac, blue G3, etc.)*/
  902.     gestaltPowerMacG3            = 510,
  903.     gestaltPowerMac5500            = 512,
  904.     gestalt20thAnniversary        = gestaltPowerMac5500,
  905.     gestaltPowerMac6500            = 513,
  906.     gestaltPowerMac4400_160        = 514,                            /* slower machine has different machine ID*/
  907.     gestaltPowerMac4400            = 515
  908. };
  909.  
  910.  
  911. enum {
  912.     gestaltQuadra605            = gestaltMacQuadra605,
  913.     gestaltQuadra610            = gestaltMacQuadra610,
  914.     gestaltQuadra630            = gestaltMacQuadra630,
  915.     gestaltQuadra650            = gestaltMacQuadra650,
  916.     gestaltQuadra660AV            = gestaltMacQuadra660AV,
  917.     gestaltQuadra700            = gestaltMacQuadra700,
  918.     gestaltQuadra800            = gestaltMacQuadra800,
  919.     gestaltQuadra840AV            = gestaltMacQuadra840AV,
  920.     gestaltQuadra900            = gestaltMacQuadra900,
  921.     gestaltQuadra950            = gestaltMacQuadra950
  922. };
  923.  
  924. enum {
  925.     kMachineNameStrID            = -16395
  926. };
  927.  
  928. enum {
  929.     gestaltSMPMailerVersion        = FOUR_CHAR_CODE('malr')        /* OCE StandardMail*/
  930. };
  931.  
  932. enum {
  933.     gestaltMediaBay                = FOUR_CHAR_CODE('mbeh'),        /* media bay driver type */
  934.     gestaltMBLegacy                = 0,                            /* media bay support in PCCard 2.0 */
  935.     gestaltMBSingleBay            = 1,                            /* single bay media bay driver */
  936.     gestaltMBMultipleBays        = 2                                /* multi-bay media bay driver */
  937. };
  938.  
  939. enum {
  940.     gestaltMessageMgrVersion    = FOUR_CHAR_CODE('mess')        /* GX Printing Message Manager Gestalt Selector */
  941. };
  942.  
  943.  
  944. /*    Menu Manager Geslalt (Mac OS 8.5 and later)*/
  945. enum {
  946.     gestaltMenuMgrAttr            = FOUR_CHAR_CODE('menu'),        /* If this Gestalt exists, the Mac OS 8.5 Menu Manager is installed */
  947.     gestaltMenuMgrPresent        = (1L << 0),                    /* NOTE: this is a bit mask, where all other Gestalt constants of this nature */
  948.                                                                 /* are bit index values. 3.2 interfaces slipped out with this mistake unnoticed. */
  949.                                                                 /* Sincere apologies for any inconvenience. */
  950.     gestaltMenuMgrPresentMask    = (1L << 0),                    /* bit mask */
  951.     gestaltMenuMgrPresentBit    = 0                                /* bit number */
  952. };
  953.  
  954.  
  955. enum {
  956.     gestaltMultipleUsersState    = FOUR_CHAR_CODE('mfdr')        /* Gestalt selector returns MultiUserGestaltHandle (in Folders.h)*/
  957. };
  958.  
  959.  
  960. enum {
  961.     gestaltMachineIcon            = FOUR_CHAR_CODE('micn')        /* machine icon */
  962. };
  963.  
  964. enum {
  965.     gestaltMiscAttr                = FOUR_CHAR_CODE('misc'),        /* miscellaneous attributes */
  966.     gestaltScrollingThrottle    = 0,                            /* true if scrolling throttle on */
  967.     gestaltSquareMenuBar        = 2                                /* true if menu bar is square */
  968. };
  969.  
  970.  
  971. /*
  972.     The name gestaltMixedModeVersion for the 'mixd' selector is semantically incorrect.
  973.     The same selector has been renamed gestaltMixedModeAttr to properly reflect the
  974.     Inside Mac: PowerPC System Software documentation.  The gestaltMixedModeVersion
  975.     symbol has been preserved only for backwards compatibility.
  976.  
  977.     Developers are forewarned that gestaltMixedModeVersion has a limited lifespan and
  978.     will be removed in a future release of the Interfaces.
  979.  
  980.     For the first version of Mixed Mode, both meanings of the 'mixd' selector are
  981.     functionally identical.  They both return 0x00000001.  In subsequent versions
  982.     of Mixed Mode, however, the 'mixd' selector will not respond with an increasing
  983.     version number, but rather, with 32 attribute bits with various meanings.
  984. */
  985. enum {
  986.     gestaltMixedModeVersion        = FOUR_CHAR_CODE('mixd')        /* returns version of Mixed Mode */
  987. };
  988.  
  989. enum {
  990.     gestaltMixedModeAttr        = FOUR_CHAR_CODE('mixd'),        /* returns Mixed Mode attributes */
  991.     gestaltMixedModePowerPC        = 0,                            /* true if Mixed Mode supports PowerPC ABI calling conventions */
  992.     gestaltPowerPCAware            = 0,                            /* old name for gestaltMixedModePowerPC */
  993.     gestaltMixedModeCFM68K        = 1,                            /* true if Mixed Mode supports CFM-68K calling conventions */
  994.     gestaltMixedModeCFM68KHasTrap = 2,                            /* true if CFM-68K Mixed Mode implements _MixedModeDispatch (versions 1.0.1 and prior did not) */
  995.     gestaltMixedModeCFM68KHasState = 3                            /* true if CFM-68K Mixed Mode exports Save/RestoreMixedModeState */
  996. };
  997.  
  998. enum {
  999.     gestaltQuickTimeConferencing = FOUR_CHAR_CODE('mtlk')        /* returns QuickTime Conferencing version */
  1000. };
  1001.  
  1002. enum {
  1003.     gestaltMemoryMapAttr        = FOUR_CHAR_CODE('mmap'),        /* Memory map type */
  1004.     gestaltMemoryMapSparse        = 0                                /* Sparse memory is on */
  1005. };
  1006.  
  1007. enum {
  1008.     gestaltMMUType                = FOUR_CHAR_CODE('mmu '),        /* mmu type */
  1009.     gestaltNoMMU                = 0,                            /* no MMU */
  1010.     gestaltAMU                    = 1,                            /* address management unit */
  1011.     gestalt68851                = 2,                            /* 68851 PMMU */
  1012.     gestalt68030MMU                = 3,                            /* 68030 built-in MMU */
  1013.     gestalt68040MMU                = 4,                            /* 68040 built-in MMU */
  1014.     gestaltEMMU1                = 5                                /* Emulated MMU type 1  */
  1015. };
  1016.  
  1017. enum {
  1018.     gestaltUserVisibleMachineName = FOUR_CHAR_CODE('mnam')        /* Coerce response into a StringPtr to get a user visible machine name */
  1019. };
  1020.  
  1021. enum {
  1022.     gestaltMPCallableAPIsAttr    = FOUR_CHAR_CODE('mpsc'),        /* Bitmap of toolbox/OS managers that can be called from MPLibrary MPTasks */
  1023.     gestaltMPFileManager        = 0,                            /* True if File Manager calls can be made from MPTasks */
  1024.     gestaltMPDeviceManager        = 1                                /* True if synchronous Device Manager calls can be made from MPTasks */
  1025. };
  1026.  
  1027. enum {
  1028.     gestaltStdNBPAttr            = FOUR_CHAR_CODE('nlup'),        /* standard nbp attributes */
  1029.     gestaltStdNBPPresent        = 0,
  1030.     gestaltStdNBPSupportsAutoPosition = 1                        /* StandardNBP takes (-1,-1) to mean alert position main screen */
  1031. };
  1032.  
  1033. enum {
  1034.     gestaltNotificationMgrAttr    = FOUR_CHAR_CODE('nmgr'),        /* notification manager attributes */
  1035.     gestaltNotificationPresent    = 0                                /* notification manager exists */
  1036. };
  1037.  
  1038. enum {
  1039.     gestaltNameRegistryVersion    = FOUR_CHAR_CODE('nreg')        /* NameRegistryLib version number, for System 7.5.2+ usage */
  1040. };
  1041.  
  1042. enum {
  1043.     gestaltNuBusSlotCount        = FOUR_CHAR_CODE('nubs')        /* count of logical NuBus slots present */
  1044. };
  1045.  
  1046. enum {
  1047.     gestaltOCEToolboxVersion    = FOUR_CHAR_CODE('ocet'),        /* OCE Toolbox version */
  1048.     gestaltOCETB                = 0x0102,                        /* OCE Toolbox version 1.02 */
  1049.     gestaltSFServer                = 0x0100                        /* S&F Server version 1.0 */
  1050. };
  1051.  
  1052. enum {
  1053.     gestaltOCEToolboxAttr        = FOUR_CHAR_CODE('oceu'),        /* OCE Toolbox attributes */
  1054.     gestaltOCETBPresent            = 0x01,                            /* OCE toolbox is present, not running */
  1055.     gestaltOCETBAvailable        = 0x02,                            /* OCE toolbox is running and available */
  1056.     gestaltOCESFServerAvailable    = 0x04,                            /* S&F Server is running and available */
  1057.     gestaltOCETBNativeGlueAvailable = 0x10                        /* Native PowerPC Glue routines are availible */
  1058. };
  1059.  
  1060. enum {
  1061.     gestaltOpenFirmwareInfo        = FOUR_CHAR_CODE('opfw')        /* Open Firmware info */
  1062. };
  1063.  
  1064. enum {
  1065.     gestaltOSAttr                = FOUR_CHAR_CODE('os  '),        /* o/s attributes */
  1066.     gestaltSysZoneGrowable        = 0,                            /* system heap is growable */
  1067.     gestaltLaunchCanReturn        = 1,                            /* can return from launch */
  1068.     gestaltLaunchFullFileSpec    = 2,                            /* can launch from full file spec */
  1069.     gestaltLaunchControl        = 3,                            /* launch control support available */
  1070.     gestaltTempMemSupport        = 4,                            /* temp memory support */
  1071.     gestaltRealTempMemory        = 5,                            /* temp memory handles are real */
  1072.     gestaltTempMemTracked        = 6,                            /* temporary memory handles are tracked */
  1073.     gestaltIPCSupport            = 7,                            /* IPC support is present */
  1074.     gestaltSysDebuggerSupport    = 8                                /* system debugger support is present */
  1075. };
  1076.  
  1077. enum {
  1078.     gestaltOSTable                = FOUR_CHAR_CODE('ostt')        /*  OS trap table base  */
  1079. };
  1080.  
  1081. /* ***** Open Transport Gestalt ******/
  1082.  
  1083.  
  1084. enum {
  1085.     gestaltOpenTptVersions        = FOUR_CHAR_CODE('otvr')        /* Defined by OT 1.1 and higher, response is NumVersion.*/
  1086. };
  1087.  
  1088. enum {
  1089.     gestaltOpenTpt                = FOUR_CHAR_CODE('otan'),        /* Defined by all versions, response is defined below.*/
  1090.     gestaltOpenTptPresentMask    = 0x00000001,
  1091.     gestaltOpenTptLoadedMask    = 0x00000002,
  1092.     gestaltOpenTptAppleTalkPresentMask = 0x00000004,
  1093.     gestaltOpenTptAppleTalkLoadedMask = 0x00000008,
  1094.     gestaltOpenTptTCPPresentMask = 0x00000010,
  1095.     gestaltOpenTptTCPLoadedMask    = 0x00000020,
  1096.     gestaltOpenTptIPXSPXPresentMask = 0x00000040,
  1097.     gestaltOpenTptIPXSPXLoadedMask = 0x00000080,
  1098.     gestaltOpenTptPresentBit    = 0,
  1099.     gestaltOpenTptLoadedBit        = 1,
  1100.     gestaltOpenTptAppleTalkPresentBit = 2,
  1101.     gestaltOpenTptAppleTalkLoadedBit = 3,
  1102.     gestaltOpenTptTCPPresentBit    = 4,
  1103.     gestaltOpenTptTCPLoadedBit    = 5,
  1104.     gestaltOpenTptIPXSPXPresentBit = 6,
  1105.     gestaltOpenTptIPXSPXLoadedBit = 7
  1106. };
  1107.  
  1108.  
  1109. enum {
  1110.     gestaltPCCard                = FOUR_CHAR_CODE('pccd'),        /*    PC Card attributes*/
  1111.     gestaltCardServicesPresent    = 0,                            /*    PC Card 2.0 (68K) API is present*/
  1112.     gestaltPCCardFamilyPresent    = 1,                            /*    PC Card 3.x (PowerPC) API is present*/
  1113.     gestaltPCCardHasPowerControl = 2,                            /*    PCCardSetPowerLevel is supported*/
  1114.     gestaltPCCardSupportsCardBus = 3                            /*    CardBus is supported*/
  1115. };
  1116.  
  1117. enum {
  1118.     gestaltProcClkSpeed            = FOUR_CHAR_CODE('pclk')        /* processor clock speed in hertz */
  1119. };
  1120.  
  1121. enum {
  1122.     gestaltPCXAttr                = FOUR_CHAR_CODE('pcxg'),        /* PC Exchange attributes */
  1123.     gestaltPCXHas8and16BitFAT    = 0,                            /* PC Exchange supports both 8 and 16 bit FATs */
  1124.     gestaltPCXHasProDOS            = 1,                            /* PC Exchange supports ProDOS */
  1125.     gestaltPCXNewUI                = 2,
  1126.     gestaltPCXUseICMapping        = 3                                /* PC Exchange uses InternetConfig for file mappings */
  1127. };
  1128.  
  1129. enum {
  1130.     gestaltLogicalPageSize        = FOUR_CHAR_CODE('pgsz')        /* logical page size */
  1131. };
  1132.  
  1133. /*    System 7.6 and later.  If gestaltScreenCaptureMain is not implemented,
  1134.     PictWhap proceeds with screen capture in the usual way.
  1135.  
  1136.     The high word of gestaltScreenCaptureMain is reserved (use 0).
  1137.  
  1138.     To disable screen capture to disk, put zero in the low word.  To
  1139.     specify a folder for captured pictures, put the vRefNum in the
  1140.     low word of gestaltScreenCaptureMain, and put the directory ID in
  1141.     gestaltScreenCaptureDir.
  1142. */
  1143. enum {
  1144.     gestaltScreenCaptureMain    = FOUR_CHAR_CODE('pic1'),        /* Zero, or vRefNum of disk to hold picture */
  1145.     gestaltScreenCaptureDir        = FOUR_CHAR_CODE('pic2')        /* Directory ID of folder to hold picture */
  1146. };
  1147.  
  1148. enum {
  1149.     gestaltGXPrintingMgrVersion    = FOUR_CHAR_CODE('pmgr')        /* QuickDraw GX Printing Manager Version*/
  1150. };
  1151.  
  1152. enum {
  1153.     gestaltPopupAttr            = FOUR_CHAR_CODE('pop!'),        /* popup cdef attributes */
  1154.     gestaltPopupPresent            = 0
  1155. };
  1156.  
  1157. enum {
  1158.     gestaltPowerMgrAttr            = FOUR_CHAR_CODE('powr'),        /* power manager attributes */
  1159.     gestaltPMgrExists            = 0,
  1160.     gestaltPMgrCPUIdle            = 1,
  1161.     gestaltPMgrSCC                = 2,
  1162.     gestaltPMgrSound            = 3,
  1163.     gestaltPMgrDispatchExists    = 4,
  1164.     gestaltPMgrSupportsAVPowerStateAtSleepWake = 5
  1165. };
  1166.  
  1167. enum {
  1168.     gestaltPowerMgrVers            = FOUR_CHAR_CODE('pwrv')        /* power manager version */
  1169. };
  1170.  
  1171. /*
  1172.  * PPC will return the combination of following bit fields.
  1173.  * e.g. gestaltPPCSupportsRealTime +gestaltPPCSupportsIncoming + gestaltPPCSupportsOutGoing
  1174.  * indicates PPC is cuurently is only supports real time delivery
  1175.  * and both incoming and outgoing network sessions are allowed.
  1176.  * By default local real time delivery is supported as long as PPCInit has been called.*/
  1177. enum {
  1178.     gestaltPPCToolboxAttr        = FOUR_CHAR_CODE('ppc '),        /* PPC toolbox attributes */
  1179.     gestaltPPCToolboxPresent    = 0x0000,                        /* PPC Toolbox is present  Requires PPCInit to be called */
  1180.     gestaltPPCSupportsRealTime    = 0x1000,                        /* PPC Supports real-time delivery */
  1181.     gestaltPPCSupportsIncoming    = 0x0001,                        /* PPC will allow incoming network requests */
  1182.     gestaltPPCSupportsOutGoing    = 0x0002,                        /* PPC will allow outgoing network requests */
  1183.     gestaltPPCSupportsTCP_IP    = 0x0004,                        /* PPC supports TCP/IP transport    */
  1184.     gestaltPPCSupportsIncomingAppleTalk = 0x0010,
  1185.     gestaltPPCSupportsIncomingTCP_IP = 0x0020,
  1186.     gestaltPPCSupportsOutgoingAppleTalk = 0x0100,
  1187.     gestaltPPCSupportsOutgoingTCP_IP = 0x0200
  1188. };
  1189.  
  1190. enum {
  1191.     gestaltPowerPCProcessorFeatures = FOUR_CHAR_CODE('ppcf'),    /* Optional PowerPC processor features */
  1192.     gestaltPowerPCHasGraphicsInstructions = 0,                    /* has fres, frsqrte, and fsel instructions */
  1193.     gestaltPowerPCHasSTFIWXInstruction = 1,                        /* has stfiwx instruction */
  1194.     gestaltPowerPCHasSquareRootInstructions = 2,                /* has fsqrt and fsqrts instructions */
  1195.     gestaltPowerPCHasDCBAInstruction = 3,                        /* has dcba instruction */
  1196.     gestaltPowerPCHasVectorInstructions = 4,                    /* has vector instructions */
  1197.     gestaltPowerPCHasDataStreams = 5                            /* has dst, dstt, dstst, dss, and dssall instructions */
  1198. };
  1199.  
  1200. enum {
  1201.     gestaltProcessorType        = FOUR_CHAR_CODE('proc'),        /* processor type */
  1202.     gestalt68000                = 1,
  1203.     gestalt68010                = 2,
  1204.     gestalt68020                = 3,
  1205.     gestalt68030                = 4,
  1206.     gestalt68040                = 5
  1207. };
  1208.  
  1209. enum {
  1210.     gestaltSDPPromptVersion        = FOUR_CHAR_CODE('prpv')        /* OCE Standard Directory Panel*/
  1211. };
  1212.  
  1213. enum {
  1214.     gestaltParityAttr            = FOUR_CHAR_CODE('prty'),        /* parity attributes */
  1215.     gestaltHasParityCapability    = 0,                            /* has ability to check parity */
  1216.     gestaltParityEnabled        = 1                                /* parity checking enabled */
  1217. };
  1218.  
  1219. enum {
  1220.     gestaltQD3DVersion            = FOUR_CHAR_CODE('q3v ')        /* Quickdraw 3D version in pack BCD*/
  1221. };
  1222.  
  1223. enum {
  1224.     gestaltQD3DViewer            = FOUR_CHAR_CODE('q3vc'),        /* Quickdraw 3D viewer attributes*/
  1225.     gestaltQD3DViewerPresent    = 0                                /* bit 0 set if QD3D Viewer is available*/
  1226. };
  1227.  
  1228. #if OLDROUTINENAMES
  1229. enum {
  1230.     gestaltQD3DViewerNotPresent    = (0 << gestaltQD3DViewerPresent),
  1231.     gestaltQD3DViewerAvailable    = (1 << gestaltQD3DViewerPresent)
  1232. };
  1233.  
  1234. #endif  /* OLDROUTINENAMES */
  1235.  
  1236. enum {
  1237.     gestaltQuickdrawVersion        = FOUR_CHAR_CODE('qd  '),        /* quickdraw version */
  1238.     gestaltOriginalQD            = 0x0000,                        /* original 1-bit QD */
  1239.     gestalt8BitQD                = 0x0100,                        /* 8-bit color QD */
  1240.     gestalt32BitQD                = 0x0200,                        /* 32-bit color QD */
  1241.     gestalt32BitQD11            = 0x0201,                        /* 32-bit color QDv1.1 */
  1242.     gestalt32BitQD12            = 0x0220,                        /* 32-bit color QDv1.2 */
  1243.     gestalt32BitQD13            = 0x0230,                        /* 32-bit color QDv1.3 */
  1244.     gestaltAllegroQD            = 0x0250                        /* Allegro QD OS 8.5 */
  1245. };
  1246.  
  1247. enum {
  1248.     gestaltQD3D                    = FOUR_CHAR_CODE('qd3d'),        /* Quickdraw 3D attributes*/
  1249.     gestaltQD3DPresent            = 0                                /* bit 0 set if QD3D available*/
  1250. };
  1251.  
  1252. #if OLDROUTINENAMES
  1253. enum {
  1254.     gestaltQD3DNotPresent        = (0 << gestaltQD3DPresent),
  1255.     gestaltQD3DAvailable        = (1 << gestaltQD3DPresent)
  1256. };
  1257.  
  1258. #endif  /* OLDROUTINENAMES */
  1259.  
  1260. enum {
  1261.     gestaltGXVersion            = FOUR_CHAR_CODE('qdgx')        /* Overall QuickDraw GX Version*/
  1262. };
  1263.  
  1264. enum {
  1265.     gestaltQuickdrawFeatures    = FOUR_CHAR_CODE('qdrw'),        /* quickdraw features */
  1266.     gestaltHasColor                = 0,                            /* color quickdraw present */
  1267.     gestaltHasDeepGWorlds        = 1,                            /* GWorlds can be deeper than 1-bit */
  1268.     gestaltHasDirectPixMaps        = 2,                            /* PixMaps can be direct (16 or 32 bit) */
  1269.     gestaltHasGrayishTextOr        = 3,                            /* supports text mode grayishTextOr */
  1270.     gestaltSupportsMirroring    = 4,                            /* Supports video mirroring via the Display Manager. */
  1271.     gestaltQDHasLongRowBytes    = 5                                /* Long rowBytes supported in GWorlds */
  1272. };
  1273.  
  1274. enum {
  1275.     gestaltQDTextVersion        = FOUR_CHAR_CODE('qdtx'),        /* QuickdrawText version */
  1276.     gestaltOriginalQDText        = 0x0000,                        /* up to and including 8.1 */
  1277.     gestaltAllegroQDText        = 0x0100                        /* starting with 8.2 (?) */
  1278. };
  1279.  
  1280. enum {
  1281.     gestaltQDTextFeatures        = FOUR_CHAR_CODE('qdtf'),        /* QuickdrawText features */
  1282.     gestaltWSIISupport            = 0,                            /* bit 0: WSII support included */
  1283.     gestaltSbitFontSupport        = 1,                            /* sbit-only fonts supported */
  1284.     gestaltAntiAliasedTextAvailable = 2,                        /* capable of antialiased text */
  1285.     gestaltOFA2available        = 3,                            /* OFA2 available */
  1286.     gestaltCreatesAliasFontRsrc    = 4,                            /* "real" datafork font support */
  1287.     gestaltNativeType1FontSupport = 5                            /* we have scaler for Type1 fonts */
  1288. };
  1289.  
  1290.  
  1291. enum {
  1292.     gestaltQuickTimeConferencingInfo = FOUR_CHAR_CODE('qtci')    /* returns pointer to QuickTime Conferencing information */
  1293. };
  1294.  
  1295. enum {
  1296.     gestaltQuickTimeVersion        = FOUR_CHAR_CODE('qtim'),        /* returns version of QuickTime */
  1297.     gestaltQuickTime            = FOUR_CHAR_CODE('qtim')        /* gestaltQuickTime is old name for gestaltQuickTimeVersion */
  1298. };
  1299.  
  1300. enum {
  1301.     gestaltQuickTimeFeatures    = FOUR_CHAR_CODE('qtrs'),
  1302.     gestaltPPCQuickTimeLibPresent = 0                            /* PowerPC QuickTime glue library is present */
  1303. };
  1304.  
  1305. enum {
  1306.     gestaltQuickTimeStreamingFeatures = FOUR_CHAR_CODE('qtsf')
  1307. };
  1308.  
  1309. enum {
  1310.     gestaltQuickTimeStreamingVersion = FOUR_CHAR_CODE('qtst')
  1311. };
  1312.  
  1313. enum {
  1314.     gestaltQTVRMgrAttr            = FOUR_CHAR_CODE('qtvr'),        /* QuickTime VR attributes                               */
  1315.     gestaltQTVRMgrPresent        = 0,                            /* QTVR API is present                                   */
  1316.     gestaltQTVRObjMoviesPresent    = 1,                            /* QTVR runtime knows about object movies                */
  1317.     gestaltQTVRCylinderPanosPresent = 2                            /* QTVR runtime knows about cylindrical panoramic movies */
  1318. };
  1319.  
  1320. enum {
  1321.     gestaltQTVRMgrVers            = FOUR_CHAR_CODE('qtvv')        /* QuickTime VR version                                  */
  1322. };
  1323.  
  1324. enum {
  1325.     gestaltPhysicalRAMSize        = FOUR_CHAR_CODE('ram ')        /* physical RAM size */
  1326. };
  1327.  
  1328. enum {
  1329.     gestaltRBVAddr                = FOUR_CHAR_CODE('rbv ')        /* RBV base address  */
  1330. };
  1331.  
  1332. enum {
  1333.     gestaltROMSize                = FOUR_CHAR_CODE('rom ')        /* rom size */
  1334. };
  1335.  
  1336. enum {
  1337.     gestaltROMVersion            = FOUR_CHAR_CODE('romv')        /* rom version */
  1338. };
  1339.  
  1340. enum {
  1341.     gestaltResourceMgrAttr        = FOUR_CHAR_CODE('rsrc'),        /* Resource Mgr attributes */
  1342.     gestaltPartialRsrcs            = 0,                            /* True if partial resources exist */
  1343.     gestaltHasResourceOverrides    = 1                                /* Appears in the ROM; so put it here. */
  1344. };
  1345.  
  1346. enum {
  1347.     gestaltResourceMgrBugFixesAttrs = FOUR_CHAR_CODE('rmbg'),    /* Resource Mgr bug fixes */
  1348.     gestaltRMForceSysHeapRolledIn = 0,
  1349.     gestaltRMFakeAppleMenuItemsRolledIn = 1,
  1350.     gestaltSanityCheckResourceFiles = 2,                        /* Resource manager does sanity checking on resource files before opening them */
  1351.     gestaltSupportsFSpResourceFileAlreadyOpenBit = 3,            /* The resource manager supports GetResFileRefNum and FSpGetResFileRefNum and FSpResourceFileAlreadyOpen */
  1352.     gestaltRMTypeIndexOrderingReverse = 8                        /* GetIndType() calls return resource types in opposite order to original 68k resource manager */
  1353. };
  1354.  
  1355.  
  1356. enum {
  1357.     gestaltRealtimeMgrAttr        = FOUR_CHAR_CODE('rtmr'),        /* Realtime manager attributes            */
  1358.     gestaltRealtimeMgrPresent    = 0                                /* true if the Realtime manager is present     */
  1359. };
  1360.  
  1361. enum {
  1362.     gestaltSafeOFAttr            = FOUR_CHAR_CODE('safe'),
  1363.     gestaltVMZerosPagesBit        = 0,
  1364.     gestaltInitHeapZerosOutHeapsBit = 1,
  1365.     gestaltNewHandleReturnsZeroedMemoryBit = 2,
  1366.     gestaltNewPtrReturnsZeroedMemoryBit = 3,
  1367.     gestaltFileAllocationZeroedBlocksBit = 4
  1368. };
  1369.  
  1370. enum {
  1371.     gestaltSCCReadAddr            = FOUR_CHAR_CODE('sccr')        /* scc read base address  */
  1372. };
  1373.  
  1374. enum {
  1375.     gestaltSCCWriteAddr            = FOUR_CHAR_CODE('sccw')        /* scc read base address  */
  1376. };
  1377.  
  1378. enum {
  1379.     gestaltScrapMgrAttr            = FOUR_CHAR_CODE('scra'),        /* Scrap Manager attributes */
  1380.     gestaltScrapMgrTranslationAware = 0                            /* True if scrap manager is translation aware */
  1381. };
  1382.  
  1383. enum {
  1384.     gestaltScriptMgrVersion        = FOUR_CHAR_CODE('scri')        /* Script Manager version number     */
  1385. };
  1386.  
  1387. enum {
  1388.     gestaltScriptCount            = FOUR_CHAR_CODE('scr#')        /* number of active script systems   */
  1389. };
  1390.  
  1391. enum {
  1392.     gestaltSCSI                    = FOUR_CHAR_CODE('scsi'),        /* SCSI Manager attributes */
  1393.     gestaltAsyncSCSI            = 0,                            /* Supports Asynchronous SCSI */
  1394.     gestaltAsyncSCSIINROM        = 1,                            /* Async scsi is in ROM (available for booting) */
  1395.     gestaltSCSISlotBoot            = 2,                            /* ROM supports Slot-style PRAM for SCSI boots (PDM and later) */
  1396.     gestaltSCSIPollSIH            = 3                                /* SCSI Manager will poll for interrupts if Secondary Interrupts are busy. */
  1397. };
  1398.  
  1399. enum {
  1400.     gestaltControlStripAttr        = FOUR_CHAR_CODE('sdev'),        /* Control Strip attributes */
  1401.     gestaltControlStripExists    = 0,                            /* Control Strip is installed */
  1402.     gestaltControlStripVersionFixed = 1,                        /* Control Strip version Gestalt selector was fixed */
  1403.     gestaltControlStripUserFont    = 2,                            /* supports user-selectable font/size */
  1404.     gestaltControlStripUserHotKey = 3                            /* support user-selectable hot key to show/hide the window */
  1405. };
  1406.  
  1407. enum {
  1408.     gestaltSDPStandardDirectoryVersion = FOUR_CHAR_CODE('sdvr')    /* OCE Standard Directory Panel*/
  1409. };
  1410.  
  1411. enum {
  1412.     gestaltSerialAttr            = FOUR_CHAR_CODE('ser '),        /* Serial attributes */
  1413.     gestaltHasGPIaToDCDa        = 0,                            /* GPIa connected to DCDa*/
  1414.     gestaltHasGPIaToRTxCa        = 1,                            /* GPIa connected to RTxCa clock input*/
  1415.     gestaltHasGPIbToDCDb        = 2,                            /* GPIb connected to DCDb */
  1416.     gestaltHidePortA            = 3,                            /* Modem port (A) should be hidden from users */
  1417.     gestaltHidePortB            = 4                                /* Printer port (B) should be hidden from users */
  1418. };
  1419.  
  1420. enum {
  1421.     gestaltShutdownAttributes    = FOUR_CHAR_CODE('shut'),        /* ShutDown Manager Attributes */
  1422.     gestaltShutdownHassdOnBootVolUnmount = 0                    /* True if ShutDown Manager unmounts boot & VM volume at shutdown time. */
  1423. };
  1424.  
  1425. enum {
  1426.     gestaltNuBusConnectors        = FOUR_CHAR_CODE('sltc')        /* bitmap of NuBus connectors*/
  1427. };
  1428.  
  1429. enum {
  1430.     gestaltSlotAttr                = FOUR_CHAR_CODE('slot'),        /* slot attributes  */
  1431.     gestaltSlotMgrExists        = 0,                            /* true is slot mgr exists  */
  1432.     gestaltNuBusPresent            = 1,                            /* NuBus slots are present  */
  1433.     gestaltSESlotPresent        = 2,                            /* SE PDS slot present  */
  1434.     gestaltSE30SlotPresent        = 3,                            /* SE/30 slot present  */
  1435.     gestaltPortableSlotPresent    = 4                                /* Portable's slot present  */
  1436. };
  1437.  
  1438. enum {
  1439.     gestaltFirstSlotNumber        = FOUR_CHAR_CODE('slt1')        /* returns first physical slot */
  1440. };
  1441.  
  1442. enum {
  1443.     gestaltSoundAttr            = FOUR_CHAR_CODE('snd '),        /* sound attributes */
  1444.     gestaltStereoCapability        = 0,                            /* sound hardware has stereo capability */
  1445.     gestaltStereoMixing            = 1,                            /* stereo mixing on external speaker */
  1446.     gestaltSoundIOMgrPresent    = 3,                            /* The Sound I/O Manager is present */
  1447.     gestaltBuiltInSoundInput    = 4,                            /* built-in Sound Input hardware is present */
  1448.     gestaltHasSoundInputDevice    = 5,                            /* Sound Input device available */
  1449.     gestaltPlayAndRecord        = 6,                            /* built-in hardware can play and record simultaneously */
  1450.     gestalt16BitSoundIO            = 7,                            /* sound hardware can play and record 16-bit samples */
  1451.     gestaltStereoInput            = 8,                            /* sound hardware can record stereo */
  1452.     gestaltLineLevelInput        = 9,                            /* sound input port requires line level */
  1453.                                                                 /* the following bits are not defined prior to Sound Mgr 3.0 */
  1454.     gestaltSndPlayDoubleBuffer    = 10,                            /* SndPlayDoubleBuffer available, set by Sound Mgr 3.0 and later */
  1455.     gestaltMultiChannels        = 11,                            /* multiple channel support, set by Sound Mgr 3.0 and later */
  1456.     gestalt16BitAudioSupport    = 12                            /* 16 bit audio data supported, set by Sound Mgr 3.0 and later */
  1457. };
  1458.  
  1459. enum {
  1460.     gestaltSplitOSAttr            = FOUR_CHAR_CODE('spos'),
  1461.     gestaltSplitOSBootDriveIsNetworkVolume = 0,                    /* the boot disk is a network 'disk', from the .LANDisk drive. */
  1462.     gestaltSplitOSAware            = 1,                            /* the system includes the code to deal with a split os situation. */
  1463.     gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2,    /* the active enabler is on a different volume than the system file. */
  1464.     gestaltSplitOSMachineNameSetToNetworkNameTemp = 3            /* The machine name was set to the value given us from the BootP server */
  1465. };
  1466.  
  1467. enum {
  1468.     gestaltSMPSPSendLetterVersion = FOUR_CHAR_CODE('spsl')        /* OCE StandardMail*/
  1469. };
  1470.  
  1471. enum {
  1472.     gestaltSpeechRecognitionAttr = FOUR_CHAR_CODE('srta'),        /* speech recognition attributes */
  1473.     gestaltDesktopSpeechRecognition = 1,                        /* recognition thru the desktop microphone is available */
  1474.     gestaltTelephoneSpeechRecognition = 2                        /* recognition thru the telephone is available */
  1475. };
  1476.  
  1477. enum {
  1478.     gestaltSpeechRecognitionVersion = FOUR_CHAR_CODE('srtb')    /* speech recognition version (0x0150 is the first version that fully supports the API) */
  1479. };
  1480.  
  1481. enum {
  1482.     gestaltSoftwareVendorCode    = FOUR_CHAR_CODE('srad'),        /* Returns system software vendor information */
  1483.     gestaltSoftwareVendorApple    = FOUR_CHAR_CODE('Appl'),        /* System software sold by Apple */
  1484.     gestaltSoftwareVendorLicensee = FOUR_CHAR_CODE('Lcns')        /* System software sold by licensee */
  1485. };
  1486.  
  1487. enum {
  1488.     gestaltStandardFileAttr        = FOUR_CHAR_CODE('stdf'),        /* Standard File attributes */
  1489.     gestaltStandardFile58        = 0,                            /* True if selectors 5-8 (StandardPutFile-CustomGetFile) are supported */
  1490.     gestaltStandardFileTranslationAware = 1,                    /* True if standard file is translation manager aware */
  1491.     gestaltStandardFileHasColorIcons = 2,                        /* True if standard file has 16x16 color icons */
  1492.     gestaltStandardFileUseGenericIcons = 3,                        /* Standard file LDEF to use only the system generic icons if true */
  1493.     gestaltStandardFileHasDynamicVolumeAllocation = 4            /* True if standard file supports more than 20 volumes */
  1494. };
  1495.  
  1496. enum {
  1497.     gestaltSysArchitecture        = FOUR_CHAR_CODE('sysa'),        /* Native System Architecture */
  1498.     gestalt68k                    = 1,                            /* Motorola MC68k architecture */
  1499.     gestaltPowerPC                = 2                                /* IBM PowerPC architecture */
  1500. };
  1501.  
  1502. enum {
  1503.     gestaltSystemUpdateVersion    = FOUR_CHAR_CODE('sysu')        /* System Update version */
  1504. };
  1505.  
  1506. enum {
  1507.     gestaltSystemVersion        = FOUR_CHAR_CODE('sysv')        /* system version*/
  1508. };
  1509.  
  1510. enum {
  1511.     gestaltToolboxTable            = FOUR_CHAR_CODE('tbtt')        /*  OS trap table base  */
  1512. };
  1513.  
  1514. enum {
  1515.     gestaltTextEditVersion        = FOUR_CHAR_CODE('te  '),        /* TextEdit version number */
  1516.     gestaltTE1                    = 1,                            /* TextEdit in MacIIci ROM */
  1517.     gestaltTE2                    = 2,                            /* TextEdit with 6.0.4 Script Systems on MacIIci (Script bug fixes for MacIIci) */
  1518.     gestaltTE3                    = 3,                            /* TextEdit with 6.0.4 Script Systems all but MacIIci */
  1519.     gestaltTE4                    = 4,                            /* TextEdit in System 7.0 */
  1520.     gestaltTE5                    = 5                                /* TextWidthHook available in TextEdit */
  1521. };
  1522.  
  1523. enum {
  1524.     gestaltTEAttr                = FOUR_CHAR_CODE('teat'),        /* TextEdit attributes */
  1525.     gestaltTEHasGetHiliteRgn    = 0,                            /* TextEdit has TEGetHiliteRgn */
  1526.     gestaltTESupportsInlineInput = 1,                            /* TextEdit does Inline Input */
  1527.     gestaltTESupportsTextObjects = 2,                            /* TextEdit does Text Objects */
  1528.     gestaltTEHasWhiteBackground    = 3                                /* TextEdit supports overriding the TERec's background to white */
  1529. };
  1530.  
  1531. enum {
  1532.     gestaltTeleMgrAttr            = FOUR_CHAR_CODE('tele'),        /* Telephone manager attributes */
  1533.     gestaltTeleMgrPresent        = 0,
  1534.     gestaltTeleMgrPowerPCSupport = 1,
  1535.     gestaltTeleMgrSoundStreams    = 2,
  1536.     gestaltTeleMgrAutoAnswer    = 3,
  1537.     gestaltTeleMgrIndHandset    = 4,
  1538.     gestaltTeleMgrSilenceDetect    = 5,
  1539.     gestaltTeleMgrNewTELNewSupport = 6
  1540. };
  1541.  
  1542. enum {
  1543.     gestaltTermMgrAttr            = FOUR_CHAR_CODE('term'),        /* terminal mgr attributes */
  1544.     gestaltTermMgrPresent        = 0,
  1545.     gestaltTermMgrErrorString    = 2
  1546. };
  1547.  
  1548. enum {
  1549.     gestaltThreadMgrAttr        = FOUR_CHAR_CODE('thds'),        /* Thread Manager attributes */
  1550.     gestaltThreadMgrPresent        = 0,                            /* bit true if Thread Mgr is present */
  1551.     gestaltSpecificMatchSupport    = 1,                            /* bit true if Thread Mgr supports exact match creation option */
  1552.     gestaltThreadsLibraryPresent = 2                            /* bit true if Thread Mgr shared library is present */
  1553. };
  1554.  
  1555. enum {
  1556.     gestaltTimeMgrVersion        = FOUR_CHAR_CODE('tmgr'),        /* time mgr version */
  1557.     gestaltStandardTimeMgr        = 1,                            /* standard time mgr is present */
  1558.     gestaltRevisedTimeMgr        = 2,                            /* revised time mgr is present */
  1559.     gestaltExtendedTimeMgr        = 3                                /* extended time mgr is present */
  1560. };
  1561.  
  1562. enum {
  1563.     gestaltTSMTEVersion            = FOUR_CHAR_CODE('tmTV'),
  1564.     gestaltTSMTE1                = 0x0100,                        /* Original version of TSMTE */
  1565.     gestaltTSMTE15                = 0x0150,                        /* System 8.0 */
  1566.     gestaltTSMTE152                = 0x0152                        /* System 8.2 */
  1567. };
  1568.  
  1569. enum {
  1570.     gestaltTSMTEAttr            = FOUR_CHAR_CODE('tmTE'),
  1571.     gestaltTSMTEPresent            = 0,
  1572.     gestaltTSMTE                = 0                                /* gestaltTSMTE is old name for gestaltTSMTEPresent */
  1573. };
  1574.  
  1575. enum {
  1576.     gestaltAVLTreeAttr            = FOUR_CHAR_CODE('tree'),        /* AVLTree utility routines attributes. */
  1577.     gestaltAVLTreePresentBit    = 0                                /* if set, then the AVL Tree routines are available. */
  1578. };
  1579.  
  1580. enum {
  1581.     gestaltALMAttr                = FOUR_CHAR_CODE('trip'),        /* Settings Manager attributes (see also gestaltALMVers) */
  1582.     gestaltALMPresent            = 0,                            /* bit true if ALM is available */
  1583.     gestaltALMHasSFGroup        = 1,                            /* bit true if Put/Get/Merge Group calls are implmented */
  1584.     gestaltALMHasCFMSupport        = 2,                            /* bit true if CFM-based modules are supported */
  1585.     gestaltALMHasRescanNotifiers = 3                            /* bit true if Rescan notifications/events will be sent to clients */
  1586. };
  1587.  
  1588. enum {
  1589.     gestaltALMHasSFLocation        = gestaltALMHasSFGroup
  1590. };
  1591.  
  1592. enum {
  1593.     gestaltTSMgrVersion            = FOUR_CHAR_CODE('tsmv'),        /* Text Services Mgr version, if present */
  1594.     gestaltTSMgr15                = 0x0150,
  1595.     gestaltTSMgr20                = 0x0200
  1596. };
  1597.  
  1598. enum {
  1599.     gestaltTSMgrAttr            = FOUR_CHAR_CODE('tsma'),        /* Text Services Mgr attributes, if present */
  1600.     gestaltTSMDisplayMgrAwareBit = 0,                            /* TSM knows about display manager */
  1601.     gestaltTSMdoesTSMTEBit        = 1                                /* TSM has integrated TSMTE */
  1602. };
  1603.  
  1604. enum {
  1605.     gestaltSpeechAttr            = FOUR_CHAR_CODE('ttsc'),        /* Speech Manager attributes */
  1606.     gestaltSpeechMgrPresent        = 0,                            /* bit set indicates that Speech Manager exists */
  1607.     gestaltSpeechHasPPCGlue        = 1                                /* bit set indicates that native PPC glue for Speech Manager API exists */
  1608. };
  1609.  
  1610. enum {
  1611.     gestaltTVAttr                = FOUR_CHAR_CODE('tv  '),        /* TV version */
  1612.     gestaltHasTVTuner            = 0,                            /* supports Philips FL1236F video tuner */
  1613.     gestaltHasSoundFader        = 1,                            /* supports Philips TEA6330 Sound Fader chip */
  1614.     gestaltHasHWClosedCaptioning = 2,                            /* supports Philips SAA5252 Closed Captioning */
  1615.     gestaltHasIRRemote            = 3,                            /* supports CyclopsII Infra Red Remote control */
  1616.     gestaltHasVidDecoderScaler    = 4,                            /* supports Philips SAA7194 Video Decoder/Scaler */
  1617.     gestaltHasStereoDecoder        = 5,                            /* supports Sony SBX1637A-01 stereo decoder */
  1618.     gestaltHasSerialFader        = 6,                            /* has fader audio in serial with system audio */
  1619.     gestaltHasFMTuner            = 7,                            /* has FM Tuner from donnybrook card */
  1620.     gestaltHasSystemIRFunction    = 8,                            /* Infra Red button function is set up by system and not by Video Startup */
  1621.     gestaltIRDisabled            = 9,                            /* Infra Red remote is not disabled. */
  1622.     gestaltINeedIRPowerOffConfirm = 10,                            /* Need IR power off confirm dialog. */
  1623.     gestaltHasZoomedVideo        = 11                            /* Has Zoomed Video PC Card video input. */
  1624. };
  1625.  
  1626.  
  1627. enum {
  1628.     gestaltATSUVersion            = FOUR_CHAR_CODE('uisv'),
  1629.     gestaltOriginalATSUVersion    = (1 << 16),                    /* ATSUI version 1.0*/
  1630.     gestaltATSUUpdate1            = (2 << 16),                    /* ATSUI version 1.1*/
  1631.     gestaltATSUUpdate2            = (3 << 16),                    /* ATSUI version 1.2*/
  1632.     gestaltATSUUpdate3            = (4 << 16)                        /* ATSUI version 2.0*/
  1633. };
  1634.  
  1635. enum {
  1636.     gestaltATSUFeatures            = FOUR_CHAR_CODE('uisf'),
  1637.     gestaltATSUTrackingFeature    = 0x00000001,                    /* feature introduced in ATSUI version 1.1*/
  1638.     gestaltATSUMemoryFeature    = 0x00000001,                    /* feature introduced in ATSUI version 1.1*/
  1639.     gestaltATSUFallbacksFeature    = 0x00000001,                    /* feature introduced in ATSUI version 1.1*/
  1640.     gestaltATSUGlyphBoundsFeature = 0x00000001,                    /* feature introduced in ATSUI version 1.1*/
  1641.     gestaltATSULineControlFeature = 0x00000001,                    /* feature introduced in ATSUI version 1.1*/
  1642.     gestaltATSULayoutCreateAndCopyFeature = 0x00000001,            /* feature introduced in ATSUI version 1.1*/
  1643.     gestaltATSULayoutCacheClearFeature = 0x00000001,            /* feature introduced in ATSUI version 1.1*/
  1644.     gestaltATSUTextLocatorUsageFeature = 0x00000002,            /* feature introduced in ATSUI version 1.2*/
  1645.     gestaltATSULowLevelOrigFeatures = 0x00000004                /* first low-level features introduced in ATSUI version 2.0*/
  1646. };
  1647.  
  1648. enum {
  1649.     gestaltUSBAttr                = FOUR_CHAR_CODE('usb '),        /* USB Attributes */
  1650.     gestaltUSBPresent            = 0,                            /* USB Support available */
  1651.     gestaltUSBHasIsoch            = 1                                /* USB Isochronous features available */
  1652. };
  1653.  
  1654. enum {
  1655.     gestaltUSBVersion            = FOUR_CHAR_CODE('usbv')        /* USB version */
  1656. };
  1657.  
  1658. enum {
  1659.     gestaltVersion                = FOUR_CHAR_CODE('vers'),        /* gestalt version */
  1660.     gestaltValueImplementedVers    = 5                                /* version of gestalt where gestaltValue is implemented. */
  1661. };
  1662.  
  1663. enum {
  1664.     gestaltVIA1Addr                = FOUR_CHAR_CODE('via1')        /* via 1 base address  */
  1665. };
  1666.  
  1667. enum {
  1668.     gestaltVIA2Addr                = FOUR_CHAR_CODE('via2')        /* via 2 base address  */
  1669. };
  1670.  
  1671. enum {
  1672.     gestaltVMAttr                = FOUR_CHAR_CODE('vm  '),        /* virtual memory attributes */
  1673.     gestaltVMPresent            = 0,                            /* true if virtual memory is present */
  1674.     gestaltVMHasLockMemoryForOutput = 1,                        /* true if LockMemoryForOutput is available */
  1675.     gestaltVMFilemappingOn        = 3,                            /* true if filemapping is available */
  1676.     gestaltVMHasPagingControl    = 4                                /* true if MakeMemoryResident, MakeMemoryNonResident, FlushMemory, and ReleaseMemoryData are available */
  1677. };
  1678.  
  1679. enum {
  1680.     gestaltVMInfoType            = FOUR_CHAR_CODE('vmin'),        /* Indicates how the Finder should display information about VM in */
  1681.                                                                 /* the Finder about box. */
  1682.     gestaltVMInfoSizeStorageType = 0,                            /* Display VM on/off, backing store size and name */
  1683.     gestaltVMInfoSizeType        = 1,                            /* Display whether VM is on or off and the size of the backing store */
  1684.     gestaltVMInfoSimpleType        = 2,                            /* Display whether VM is on or off */
  1685.     gestaltVMInfoNoneType        = 3                                /* Display no VM information */
  1686. };
  1687.  
  1688. enum {
  1689.     gestaltVMBackingStoreFileRefNum = FOUR_CHAR_CODE('vmbs')    /* file refNum of virtual memory's main backing store file (returned in low word of result) */
  1690. };
  1691.  
  1692.  
  1693.  
  1694. enum {
  1695.     gestaltALMVers                = FOUR_CHAR_CODE('walk')        /* Settings Manager version (see also gestaltALMAttr) */
  1696. };
  1697.  
  1698. enum {
  1699.     gestaltWindowMgrAttr        = FOUR_CHAR_CODE('wind'),        /* If this Gestalt exists, the Mac OS 8.5 Window Manager is installed*/
  1700.     gestaltWindowMgrPresent        = (1L << 0),                    /* NOTE: this is a bit mask, where all other Gestalt constants of*/
  1701.                                                                 /* this type are bit index values.   Universal Interfaces 3.2 slipped*/
  1702.                                                                 /* out the door with this mistake.*/
  1703.     gestaltWindowMgrPresentBit    = 0,                            /* bit number*/
  1704.     gestaltExtendedWindowAttributes = 1,                        /* Has ChangeWindowAttributes; GetWindowAttributes works for all windows*/
  1705.     gestaltExtendedWindowAttributesBit = 1,                        /* Has ChangeWindowAttributes; GetWindowAttributes works for all windows*/
  1706.     gestaltHasFloatingWindows    = 2,                            /* Floating window APIs work*/
  1707.     gestaltHasFloatingWindowsBit = 2,                            /* Floating window APIs work*/
  1708.     gestaltHasWindowBuffering    = 3,                            /* This system has buffering available*/
  1709.     gestaltHasWindowBufferingBit = 3,                            /* This system has buffering available*/
  1710.                                                                 /* masks for above bits*/
  1711.     gestaltWindowMgrPresentMask    = (1L << gestaltWindowMgrPresentBit),
  1712.     gestaltExtendedWindowAttributesMask = (1L << gestaltExtendedWindowAttributesBit),
  1713.     gestaltHasFloatingWindowsMask = (1L << gestaltHasFloatingWindowsBit),
  1714.     gestaltHasWindowBufferingMask = (1L << gestaltHasWindowBufferingBit)
  1715. };
  1716.  
  1717.  
  1718.  
  1719. #if TARGET_OS_WIN32
  1720. enum {
  1721.     gestaltX86Features            = FOUR_CHAR_CODE('x86f'),
  1722.     gestaltX86HasFPU            = 0,                            /* has an FPU that supports the 387 instructions*/
  1723.     gestaltX86HasVME            = 1,                            /* supports Virtual-8086 Mode Extensions*/
  1724.     gestaltX86HasDE                = 2,                            /* supports I/O breakpoints (Debug Extensions)*/
  1725.     gestaltX86HasPSE            = 3,                            /* supports 4-Mbyte pages (Page Size Extension)*/
  1726.     gestaltX86HasTSC            = 4,                            /* supports RTDSC instruction (Time Stamp Counter)*/
  1727.     gestaltX86HasMSR            = 5,                            /* supports Model Specific Registers*/
  1728.     gestaltX86HasPAE            = 6,                            /* supports physical addresses > 32 bits (Physical Address Extension)*/
  1729.     gestaltX86HasMCE            = 7,                            /* supports Machine Check Exception*/
  1730.     gestaltX86HasCX8            = 8,                            /* supports CMPXCHG8 instructions (Compare Exchange 8 bytes)*/
  1731.     gestaltX86HasAPIC            = 9,                            /* contains local APIC*/
  1732.     gestaltX86Reserved10        = 10,                            /* do not count on this bit value*/
  1733.     gestaltX86HasSEP            = 11,                            /* supports fast system call (SysEnter Present)*/
  1734.     gestaltX86HasMTRR            = 12,                            /* supports Memory Type Range Registers*/
  1735.     gestaltX86HasPGE            = 13,                            /* supports Page Global Enable*/
  1736.     gestaltX86HasMCA            = 14,                            /* supports Machine Check Architecture*/
  1737.     gestaltX86HasCMOV            = 15,                            /* supports CMOVcc instruction (Conditional Move).*/
  1738.                                                                 /* If FPU bit is also set, supports FCMOVcc and FCOMI, too*/
  1739.     gestaltX86HasPAT            = 16,                            /* supports Page Attribute Table*/
  1740.     gestaltX86HasPSE36            = 17,                            /* supports 36-bit Page Size Extension*/
  1741.     gestaltX86HasMMX            = 23,                            /* supports MMX instructions*/
  1742.     gestaltX86HasFXSR            = 24                            /* Supports FXSAVE and FXRSTOR instructions (fast FP save/restore)*/
  1743. };
  1744.  
  1745. #endif  /* TARGET_OS_WIN32 */
  1746.  
  1747. enum {
  1748.     gestaltTranslationAttr        = FOUR_CHAR_CODE('xlat'),        /* Translation Manager attributes */
  1749.     gestaltTranslationMgrExists    = 0,                            /* True if translation manager exists */
  1750.     gestaltTranslationMgrHintOrder = 1,                            /* True if hint order reversal in effect */
  1751.     gestaltTranslationPPCAvail    = 2,
  1752.     gestaltTranslationGetPathAPIAvail = 3
  1753. };
  1754.  
  1755. enum {
  1756.     gestaltExtToolboxTable        = FOUR_CHAR_CODE('xttt')        /* Extended Toolbox trap table base */
  1757. };
  1758.  
  1759.  
  1760. /*WorldScript settings;*/
  1761. enum {
  1762.     gestaltWorldScriptIIVersion    = FOUR_CHAR_CODE('doub'),
  1763.     gestaltWorldScriptIIAttr    = FOUR_CHAR_CODE('wsat'),
  1764.     gestaltWSIICanPrintWithoutPrGeneralBit = 0                    /* bit 0 is on if WS II knows about PrinterStatus callback */
  1765. };
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771. #if PRAGMA_STRUCT_ALIGN
  1772.     #pragma options align=reset
  1773. #elif PRAGMA_STRUCT_PACKPUSH
  1774.     #pragma pack(pop)
  1775. #elif PRAGMA_STRUCT_PACK
  1776.     #pragma pack()
  1777. #endif
  1778.  
  1779. #ifdef PRAGMA_IMPORT_OFF
  1780. #pragma import off
  1781. #elif PRAGMA_IMPORT
  1782. #pragma import reset
  1783. #endif
  1784.  
  1785. #ifdef __cplusplus
  1786. }
  1787. #endif
  1788.  
  1789. #endif /* __GESTALT__ */
  1790.  
  1791.